public enum RegistrationPolicy extends java.lang.Enum<RegistrationPolicy>
Enum Constant and Description |
---|
FAIL_ON_EXISTING
Registration should fail when attempting to register an MBean under a name that
already exists.
|
IGNORE_EXISTING
Registration should ignore the affected MBean when attempting to register an MBean
under a name that already exists.
|
REPLACE_EXISTING
Registration should replace the affected MBean when attempting to register an MBean
under a name that already exists.
|
Modifier and Type | Method and Description |
---|---|
(package private) static RegistrationPolicy |
valueOf(int registrationBehavior)
Translate from an
MBeanRegistrationSupport registration behavior constant
to a RegistrationPolicy enum value. |
static RegistrationPolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RegistrationPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RegistrationPolicy FAIL_ON_EXISTING
public static final RegistrationPolicy IGNORE_EXISTING
public static final RegistrationPolicy REPLACE_EXISTING
public static RegistrationPolicy[] values()
for (RegistrationPolicy c : RegistrationPolicy.values()) System.out.println(c);
public static RegistrationPolicy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullstatic RegistrationPolicy valueOf(int registrationBehavior)
MBeanRegistrationSupport
registration behavior constant
to a RegistrationPolicy
enum value.registrationBehavior
- one of the now-deprecated REGISTRATION_* constants
available in MBeanRegistrationSupport
.