Package org.jpos.q2.qbean
Class QXmlConfig
- java.lang.Object
-
- org.jpos.q2.QBeanSupport
-
- org.jpos.q2.qbean.QXmlConfig
-
- All Implemented Interfaces:
Configurable
,XmlConfigurable
,QBean
,QBeanSupportMBean
,QPersist
public class QXmlConfig extends QBeanSupport implements XmlConfigurable
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
XML_PREFIX
-
Fields inherited from class org.jpos.q2.QBeanSupport
cfg, log, scheduledThreadPoolExecutor
-
-
Constructor Summary
Constructors Constructor Description QXmlConfig()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
destroyService()
static org.jdom2.Element
getConfiguration(java.lang.String name)
static org.jdom2.Element
getConfiguration(java.lang.String name, long timeout)
void
setConfiguration(org.jdom2.Element e)
-
Methods inherited from class org.jpos.q2.QBeanSupport
addAttr, close, createElement, destroy, getAttrs, getAttrs, getConfiguration, getDump, getFactory, getLoader, getLoaderURLS, getLog, getLogger, getName, getPersist, getProperties, getProperty, getRealm, getScheduledThreadPoolExecutor, getServer, getState, getStateAsString, init, initService, isModified, running, setAttr, setConfiguration, setLogger, setModified, setName, setPersist, setProperty, setRealm, setServer, setState, start, startService, stop, stopService
-
-
-
-
Field Detail
-
XML_PREFIX
public static final java.lang.String XML_PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
QXmlConfig
public QXmlConfig()
-
-
Method Detail
-
destroyService
protected void destroyService()
- Overrides:
destroyService
in classQBeanSupport
-
setConfiguration
public void setConfiguration(org.jdom2.Element e)
- Specified by:
setConfiguration
in interfaceXmlConfigurable
- Parameters:
e
- Configuration element
-
getConfiguration
public static org.jdom2.Element getConfiguration(java.lang.String name) throws NameRegistrar.NotFoundException
- Throws:
NameRegistrar.NotFoundException
-
getConfiguration
public static org.jdom2.Element getConfiguration(java.lang.String name, long timeout)
- Parameters:
name
- configuration nametimeout
- in millis- Returns:
- Configuration Element or null
-
-