Use annotations to define UI properties

You can use annotations to define the source configuration type (SCT) properties displayed in the Deployment Automation user interface during component configuration.

For details about the annotations, see the Javadoc.

In the following sample code, the annotation SourceConfigTypeParam defines a property called Base Path, as displayed in bold:

.
.
.
public class FileSystemVersioned implements CommonIntegrator {

@SourceConfigTypeParam(displayName = "Base Path", 
   description = "Base path for artifact storage", required = true)    private String basePath;

  <more example code here ...>
   }

After the example is compiled and loaded into Deployment Automation, the property Base Path is displayed in a component when the example source configuration type is selected.

Back to top