Enum BuilderConfigurationWrapperFactory.EventSourceSupport
java.lang.Object
java.lang.Enum<BuilderConfigurationWrapperFactory.EventSourceSupport>
org.apache.commons.configuration2.builder.BuilderConfigurationWrapperFactory.EventSourceSupport
- All Implemented Interfaces:
Serializable
,Comparable<BuilderConfigurationWrapperFactory.EventSourceSupport>
- Enclosing class:
- BuilderConfigurationWrapperFactory
public static enum BuilderConfigurationWrapperFactory.EventSourceSupport
extends Enum<BuilderConfigurationWrapperFactory.EventSourceSupport>
An enumeration class with different options for supporting the EventSource
interface in generated
ImmutableConfiguration
proxies.
Using literals of this class it is possible to specify that a ImmutableConfiguration
object returned by
BuilderConfigurationWrapperFactory
also implements the EventSource
interface and how this
implementation should work. See the documentation of the single constants for more details.
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
No support of theEventSource
interface. If this option is set,ImmutableConfiguration
objects generated byBuilderConfigurationWrapperFactory
do not implement theEventSource
interface. -
DUMMY
Dummy support of theEventSource
interface. This option causesImmutableConfiguration
objects generated byBuilderConfigurationWrapperFactory
to implement theEventSource
interface, however, this implementation consists only of empty dummy methods without real functionality. -
BUILDER
EventSource
support is implemented by delegating to the associatedConfigurationBuilder
object. If this option is used, generatedImmutableConfiguration
objects provide a fully functional implementation ofEventSource
by delegating to the builder. Because theConfigurationBuilder
interface extendsEventSource
this delegation is always possible.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-