|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.progeeks.util.xml.SystemPropertyObjectHandler.SystemPropertyHolder
public class SystemPropertyObjectHandler.SystemPropertyHolder
Class for storing the intermediate object containing the information for determining the system property value. Provides a way to resolve this information into the actual system property value.
Constructor Summary | |
---|---|
protected |
SystemPropertyObjectHandler.SystemPropertyHolder()
Protected constructor for subclasses that don't know their type yet. |
|
SystemPropertyObjectHandler.SystemPropertyHolder(java.lang.Class type)
Constructor for the holder that sets what kind of property it will be resolving. |
Method Summary | |
---|---|
java.lang.Object |
getDefaultValue()
Returns the default value, already resolved into the proper object type (or null if no default is set). |
java.lang.String |
getKey()
Returns the key (system property name) for the system property to use. |
protected java.lang.Class |
getType()
|
java.lang.Object |
resolve()
Resolves the property holder into the final value of the desired type. |
void |
setDefaultValue(java.lang.String value)
Sets the default value of the property. |
void |
setKey(java.lang.String key)
Sets the key (system property name) for the system property to use. |
protected void |
setType(java.lang.Class type)
Sets the type that string properties will resolve to. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SystemPropertyObjectHandler.SystemPropertyHolder(java.lang.Class type)
protected SystemPropertyObjectHandler.SystemPropertyHolder()
Method Detail |
---|
protected void setType(java.lang.Class type)
protected java.lang.Class getType()
public void setKey(java.lang.String key)
public java.lang.String getKey()
public void setDefaultValue(java.lang.String value)
public java.lang.Object getDefaultValue()
public java.lang.Object resolve()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |