Annotation Type ConfigurationOption
-
@Retention(RUNTIME) @Target({METHOD,TYPE}) @Inherited public @interface ConfigurationOption
Describes all the ways in which a bean's properties can be reflected on the command line and via messages.Ideally, we could have used classes for
formEntryClass()
but this would create a runtime dependency. So we are needed to use string instead and as a result, String constants are used for common (non-reflection) based entries.
-
-
Field Summary
Fields Modifier and Type Fields Description static java.lang.String
DOCUMENT_MODE
Used for any String method that should be rendered as an ingest document mode option boxstatic java.lang.String
FALSE_SWITCH_VALUE
Constant FALSE for switchValue()static java.lang.String
HTTPS
Used for any String method that should be rendered as a HTTP, HTTPS option boxstatic java.lang.String
NULL_LONG_OPTION
static java.lang.String
OPTION
Used for selecting from among provided optionsstatic java.lang.String
PASSWORD
Used for any String method that should be rendered as a passwordstatic java.lang.String
QUERY_LANGUAGE
Used for selecting from among available query languagesstatic java.lang.String
SORTED_STRING_LIST
Use for Listmethods but when the UI should display the list in sorted order static java.lang.String
SPRING_BEAN
Use for any Object that should be pulled from springstatic java.lang.String
STRING_LIST
Use for Listmethods static java.lang.String
STRING_TO_STRING_MAP
Use for Map<String,String> methodsstatic java.lang.String
TEXT_AREA
Used for any String method that should be rendered as a text area (aka multiple lines)static java.lang.String
TRUE_SWITCH_VALUE
Constant TRUE for switchValue()
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
addDefaultValue
If true, adds [Default = `default from class`] to the end of the description if default value != null.java.lang.String
description
Description for this option.java.lang.String
displayName
displayed to the user in the admin interfacejava.lang.String
formEntryClass
Class to implement the Form Entry (see GWT Commons)java.lang.String
help
extra help text for this optionboolean
hidden
If true, hide from the command line option generation process, default = false.java.lang.String[]
labels
java.lang.String
longOpt
The long option for a command line argument.java.lang.String
messageProp
Deprecated.No longer used.ConfigurationOption.OptionLevel
optionLevel
Determines if an option is required, basic or advanced.boolean
required
Deprecated.use optionLevel = OptionLevel.Required insteadjava.lang.String
shortOpt
The short option for a command line argument.java.lang.String[]
switchValue
If specified, this option will be a no argument command line switch that will received the switchValue() if used.
-
-
-
hidden
boolean hidden
If true, hide from the command line option generation process, default = false.- Default:
- false
-
-
-
optionLevel
ConfigurationOption.OptionLevel optionLevel
Determines if an option is required, basic or advanced.- Default:
- com.attivio.sdk.server.annotation.ConfigurationOption.OptionLevel.Advanced
-