Enum Class DynamicServiceRegistration.RegistrationMode
java.lang.Object
java.lang.Enum<DynamicServiceRegistration.RegistrationMode>
de.aristaflow.adept2.base.service.DynamicServiceRegistration.RegistrationMode
- All Implemented Interfaces:
Serializable,Comparable<DynamicServiceRegistration.RegistrationMode>,java.lang.constant.Constable
- Enclosing class:
- DynamicServiceRegistration<K,
S extends ADEPT2Service>
public static enum DynamicServiceRegistration.RegistrationMode
extends Enum<DynamicServiceRegistration.RegistrationMode>
The mode to register a service.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRegister the service if no service is registered for the key yet, do nothing otherwise.Append the service to the list of services already registered for the key; this may be the first service for this key.Replace all services registered for the key by this one. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ADD_IF_ABSENT
Register the service if no service is registered for the key yet, do nothing otherwise. -
APPEND
Append the service to the list of services already registered for the key; this may be the first service for this key. If the service is already registered, it will be ignored. -
REPLACE
Replace all services registered for the key by this one. This will unregister all existing services (and the key) if there are any. Anyway, this will be the first service for this key afterwards.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-