|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.util.property.jmx.SystemPropertyClassValue
A helper for setting system properties based on class availablity.
It has a static method and an MBean wrapper for dynamic configuration.
The class is first checked for availablity before setting the system property.
| Field Summary | |
protected String |
className
Class Name. |
static Logger |
log
|
protected String |
property
Property name. |
| Constructor Summary | |
SystemPropertyClassValue()
Constructor. |
|
| Method Summary | |
void |
create()
JBoss lifecycle |
String |
getClassName()
The class name to use a value for the system property when it is available |
String |
getProperty()
The system property value |
void |
setClassName(String className)
The class name to use a value for the system property when it is available |
void |
setProperty(String property)
The system property value |
static Throwable |
setSystemPropertyClassValue(String property,
String className)
Sets the system property to a class when the class is available. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final Logger log
protected String property
protected String className
| Constructor Detail |
public SystemPropertyClassValue()
| Method Detail |
public String getProperty()
getProperty in interface SystemPropertyClassValueMBeanpublic void setProperty(String property)
setProperty in interface SystemPropertyClassValueMBeanpublic String getClassName()
getClassName in interface SystemPropertyClassValueMBeanpublic void setClassName(String className)
setClassName in interface SystemPropertyClassValueMBeanpublic void create()
create in interface SystemPropertyClassValueMBeanpublic static Throwable setSystemPropertyClassValue(String property, String className)
property - the property to setclassName - the class to set as the properties value
IllegalArgumentException - for a null or empty parameter
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||