public class DefaultConfigurableObject extends AbstractConfigurableObject implements ConfigurableObject
Default implementation of ConfigurableObject
,
configure(Properties)
method is a donothing, while
configure(Element)
calls configure(Properties)
with the Element attributes transformed in a Properties object.
logger
Constructor and Description |
---|
DefaultConfigurableObject() |
Modifier and Type | Method and Description |
---|---|
void |
configure(Element tag)
Configure the object.
|
void |
configure(Properties props)
Configure the object.
|
static Properties |
defaultConversion(Element tag) |
configureProperties, configureXML
getLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
configureProperties, configureXML
public static Properties defaultConversion(Element tag)
public void configure(Properties props) throws ConfigException
ConfigurableObject
Configure the object.
configure
in interface ConfigurableObject
configure
in class AbstractConfigurableObject
props
- The property object to use for configuration.ConfigException
- If troubles arise during object configuration.public void configure(Element tag) throws ConfigException
ConfigurableObject
Configure the object.
configure
in interface ConfigurableObject
configure
in class AbstractConfigurableObject
tag
- The tag object to use for configuration.ConfigException
- If troubles arise during object configuration.Copyright © 2022 Fugerit. All rights reserved.