|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<RegistrationPolicy> org.springframework.config.java.plugin.context.RegistrationPolicy
public enum RegistrationPolicy
Indicates registration behavior when attempting to register an MBean that already exists.
MBeanExport.registration()
Enum Constant Summary | |
---|---|
FAIL_ON_EXISTING
Fail with an exception |
|
IGNORE_EXISTING
Ignore new MBean, keep the existing one |
|
REPLACE_EXISTING
Replace existing MBean with the new one |
Method Summary | |
---|---|
int |
getPolicyCode()
Returns integer associated with constants in MBeanRegistrationSupport |
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final RegistrationPolicy FAIL_ON_EXISTING
public static final RegistrationPolicy IGNORE_EXISTING
public static final RegistrationPolicy REPLACE_EXISTING
Method Detail |
---|
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 name
java.lang.NullPointerException
- if the argument is nullpublic int getPolicyCode()
MBeanRegistrationSupport
MBeanRegistrationSupport.REGISTRATION_FAIL_ON_EXISTING
,
MBeanRegistrationSupport.REGISTRATION_IGNORE_EXISTING
,
MBeanRegistrationSupport.REGISTRATION_REPLACE_EXISTING
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |