Package oracle.dbtools.plugin.api
Enum ExtensionPoints
- java.lang.Object
-
- java.lang.Enum<ExtensionPoints>
-
- oracle.dbtools.plugin.api.ExtensionPoints
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ExtensionPoints>
public enum ExtensionPoints extends java.lang.Enum<ExtensionPoints>
Enumerates the types of extensions that plugins can provide.- Author:
- cdivilly
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMMAND_LINEAn extension that contributes aCommandProvidercommandline sub-command.CONFIGURATION_SETTINGAn extension that contributes aConfigurationSetting.HTTP_FILTERAn extension that contributes a servletFilter.HTTP_SERVLETAn Extension that contributes aHttpServlet.LIFECYCLEAn Extension that participates in the application startup and/or shutdown process.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>type()The type of the extension pointstatic ExtensionPointsvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ExtensionPoints[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONFIGURATION_SETTING
public static final ExtensionPoints CONFIGURATION_SETTING
An extension that contributes aConfigurationSetting.Plugins are not encouraged to contribute additional
ConfigurationSettings as each additional setting adds to the complexity of configuring and maintaining product deployments. When a setting is unavoidable a plugin must advertise theConfigurationSettings that it introduces.
-
COMMAND_LINE
public static final ExtensionPoints COMMAND_LINE
An extension that contributes aCommandProvidercommandline sub-command.
-
HTTP_FILTER
public static final ExtensionPoints HTTP_FILTER
An extension that contributes a servletFilter. The filter must be annotated with thePriorityannotation and use one of the rings defined byFilterOrderto indicate at what stage in the filtering pipeline it should be invoked. The filter will be invoked for every request.
-
HTTP_SERVLET
public static final ExtensionPoints HTTP_SERVLET
An Extension that contributes aHttpServlet. The implementation must be annotated with theDispatchesannotation to advertise the route patterns that it handles.
-
LIFECYCLE
public static final ExtensionPoints LIFECYCLE
An Extension that participates in the application startup and/or shutdown process. If the order in which a provider is invoked is important, then the implementation type should be annotated withPriorityto indicate where in the startup/shutdown cycle it should be invoked.
-
-
Method Detail
-
values
public static ExtensionPoints[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ExtensionPoints c : ExtensionPoints.values()) System.out.println(c);- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExtensionPoints valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
type
public java.lang.Class<?> type()
The type of the extension point- Returns:
- The extension point type
-
-