public class SystemPropertyClassValue extends java.lang.Object implements SystemPropertyClassValueMBean
It has a static method and an MBean wrapper for dynamic configuration.
The class is first checked for availablity before setting the system property.
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
className
Class Name.
|
static org.jboss.logging.Logger |
log |
protected java.lang.String |
property
Property name.
|
| Constructor and Description |
|---|
SystemPropertyClassValue()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
create()
JBoss lifecycle
|
java.lang.String |
getClassName()
The class name to use a value for the system property
when it is available
|
java.lang.String |
getProperty()
The system property value
|
void |
setClassName(java.lang.String className)
The class name to use a value for the system property
when it is available
|
void |
setProperty(java.lang.String property)
The system property value
|
static java.lang.Throwable |
setSystemPropertyClassValue(java.lang.String property,
java.lang.String className)
Sets the system property to a class when the class is available.
|
public static final org.jboss.logging.Logger log
protected java.lang.String property
protected java.lang.String className
public java.lang.String getProperty()
getProperty in interface SystemPropertyClassValueMBeanpublic void setProperty(java.lang.String property)
setProperty in interface SystemPropertyClassValueMBeanpublic java.lang.String getClassName()
getClassName in interface SystemPropertyClassValueMBeanpublic void setClassName(java.lang.String className)
setClassName in interface SystemPropertyClassValueMBeanpublic void create()
create in interface SystemPropertyClassValueMBeanpublic static java.lang.Throwable setSystemPropertyClassValue(java.lang.String property,
java.lang.String className)
property - the property to setclassName - the class to set as the properties valuejava.lang.IllegalArgumentException - for a null or empty parameter