public enum RegistrationPolicy extends Enum<RegistrationPolicy>
| 枚举常量和说明 |
|---|
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.
|
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(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值