Time Stamper custom Java class extension

This sample demonstrates how to create, deploy, and use a custom class extension tool in Java. The class extension featured in this sample is associated with a feature class and is used to time stamp new features with their creation and modified times. When a new feature is added to the feature class, programmatically or through ArcMap, the class extension adds a creation time, a modified time, and the user name as attributes to the new features.
This sample creates a file geodatabase (GDB) and a feature class inside the file GDB and associates the class extension with the feature class.

How to use

See How to use ArcGIS samples for help on running the sample.

Deploy extension to ArcGIS Engine Runtime
  1. Navigate to this sample's lib folder (timestamper/lib) and copy TimeStamperExt.jar into the <ArcGIS Engine Runtime Install Dir>/java/lib/ext folder to deploy the custom feature class extension. The extension functionality becomes available to you when you start the runner application.
  2. Navigate to this sample's bin folder (timestamper/bin) and execute the TimeStamper.jar to start the application (Eclipse can also be used to execute the application - TimeStamperRunner.java).
  3. Review the output messages on the command prompt or in Eclipse's output window.
  4. Use ArcCatalog or ArcMap to review the data in the output location.

If you installed the samples feature, you will find the files associated with this sample in <Your Developer Kit install location>\DeveloperKit10.4\Java\Samples\ArcObjects.

geodatabase/TimeStamperRunner.java Main class.
geodatabase/classextension/TimeStamper.java Class extension class.

See Also:

Getting started with class extensions

Additional Requirements
  • ArcGIS Engine Runtime installed.

Development licensing Deployment licensing
Engine Developer Kit Engine