public class SystemPropertyClassValue extends 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 String |
className
Class Name.
|
static org.jboss.logging.Logger |
log |
protected String |
property
Property name.
|
Constructor and Description |
---|
SystemPropertyClassValue()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final org.jboss.logging.Logger log
protected String property
protected String className
public String getProperty()
getProperty
in interface SystemPropertyClassValueMBean
public void setProperty(String property)
setProperty
in interface SystemPropertyClassValueMBean
public String getClassName()
getClassName
in interface SystemPropertyClassValueMBean
public void setClassName(String className)
setClassName
in interface SystemPropertyClassValueMBean
public void create()
create
in interface SystemPropertyClassValueMBean
public static Throwable setSystemPropertyClassValue(String property, String className)
property
- the property to setclassName
- the class to set as the properties valueIllegalArgumentException
- for a null or empty parameterCopyright © 2018 JBoss by Red Hat. All rights reserved.