|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.progeeks.util.xml.AbstractObjectHandler
org.progeeks.util.xml.BeanObjectHandler
org.progeeks.util.xml.SystemPropertyObjectHandler
public class SystemPropertyObjectHandler
ObjectHandler implementation that can be used to import specific system properties into the XML object space. System properties are specified as:
<property-string key="myValueKey" /> <property-double key="myDoubleValueKey" /> <property-integer key="myIntValueKey" />...and so on.
Nested Class Summary | |
---|---|
class |
SystemPropertyObjectHandler.ObjectPropertyHolder
Version of the system property holder that allows configuration of the type to which strings will resolve. |
class |
SystemPropertyObjectHandler.SystemPropertyHolder
Class for storing the intermediate object containing the information for determining the system property value. |
Field Summary |
---|
Fields inherited from class org.progeeks.util.xml.BeanObjectHandler |
---|
CONFIG_IMPORT_PACKAGE |
Constructor Summary | |
---|---|
SystemPropertyObjectHandler()
Constructor. |
Method Summary | |
---|---|
boolean |
canHandle(java.lang.String tag)
Returns true if this handler applies to the specified object tag. |
java.lang.Object |
createObject(java.lang.String tag,
org.xml.sax.Attributes atts,
ObjectXmlReader reader)
Creates and returns an object based on the specified parameters. |
java.util.Properties |
getDefaultProperties()
Returns the set of properties that will be used in place of any undefined system properties. |
protected java.lang.String |
getProperty(java.lang.String key)
Internal method used to retrieve a property value. |
protected java.lang.String |
getProperty(java.lang.String key,
java.lang.String defaultValue)
Internal method used to retrieve a property value. |
java.lang.Object |
resolveObject(java.lang.String tag,
java.lang.Object obj,
ObjectXmlReader reader)
Converts a handler-specific internal representation of an object to a standard representation. |
void |
setDefaultProperties(java.util.Properties props)
Sets the set of properties that will be used in place of any undefined system properties. |
Methods inherited from class org.progeeks.util.xml.BeanObjectHandler |
---|
getClass, getClass, getConstant, getInnerClass, getPackages, getProperty, getPropertyClass, getPropertyCollection, getTagClass, ignoreAttribute, importPackage, setConfigurationProperty, setObjectProperties, setPackages, setProperty, setTextProperty |
Methods inherited from class org.progeeks.util.xml.AbstractObjectHandler |
---|
setContainedText |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SystemPropertyObjectHandler()
Method Detail |
---|
public void setDefaultProperties(java.util.Properties props)
public java.util.Properties getDefaultProperties()
protected java.lang.String getProperty(java.lang.String key)
protected java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
public boolean canHandle(java.lang.String tag)
canHandle
in interface ObjectHandler
canHandle
in class BeanObjectHandler
public java.lang.Object createObject(java.lang.String tag, org.xml.sax.Attributes atts, ObjectXmlReader reader)
createObject
in interface ObjectHandler
createObject
in class BeanObjectHandler
public java.lang.Object resolveObject(java.lang.String tag, java.lang.Object obj, ObjectXmlReader reader)
resolveObject
in interface ObjectHandler
resolveObject
in class AbstractObjectHandler
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |