Class DefaultConfigurableObject
- java.lang.Object
-
- org.fugerit.java.core.cfg.helpers.AbstractConfigurableObject
-
- org.fugerit.java.core.cfg.helpers.DefaultConfigurableObject
-
- All Implemented Interfaces:
Serializable
,ConfigurableObject
,LogObject
public class DefaultConfigurableObject extends AbstractConfigurableObject implements ConfigurableObject
Default implementation of
ConfigurableObject
,configure(Properties)
method is a donothing, whileconfigure(Element)
callsconfigure(Properties)
with the Element attributes transformed in a Properties object.- Author:
- Fugerit
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.fugerit.java.core.cfg.helpers.AbstractConfigurableObject
logger
-
-
Constructor Summary
Constructors Constructor Description DefaultConfigurableObject()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(Properties props)
Configure the object.void
configure(Element tag)
Configure the object.static Properties
defaultConversion(Element tag)
-
Methods inherited from class org.fugerit.java.core.cfg.helpers.AbstractConfigurableObject
configureProperties, configureXML, getLogger, setConfigProvider
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.fugerit.java.core.cfg.ConfigurableObject
configureProperties, configureXML
-
-
-
-
Method Detail
-
defaultConversion
public static Properties defaultConversion(Element tag)
-
configure
public void configure(Properties props) throws ConfigException
Description copied from interface:ConfigurableObject
Configure the object.
- Specified by:
configure
in interfaceConfigurableObject
- Specified by:
configure
in classAbstractConfigurableObject
- Parameters:
props
- The property object to use for configuration.- Throws:
ConfigException
- If troubles arise during object configuration.
-
configure
public void configure(Element tag) throws ConfigException
Description copied from interface:ConfigurableObject
Configure the object.
- Specified by:
configure
in interfaceConfigurableObject
- Specified by:
configure
in classAbstractConfigurableObject
- Parameters:
tag
- The tag object to use for configuration.- Throws:
ConfigException
- If troubles arise during object configuration.
-
-