Package org.jpos.q2.qbean
Class QBeanFactory
- java.lang.Object
-
- org.jpos.q2.QBeanSupport
-
- org.jpos.q2.qbean.QBeanFactory
-
- All Implemented Interfaces:
Configurable
,QBean
,QBeanFactoryMBean
,QBeanSupportMBean
,QPersist
public class QBeanFactory extends QBeanSupport implements QBeanFactoryMBean
-
-
Field Summary
-
Fields inherited from class org.jpos.q2.QBeanSupport
cfg, log, scheduledThreadPoolExecutor
-
-
Constructor Summary
Constructors Constructor Description QBeanFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getBean(java.lang.String id)
void
initService()
void
start()
start the servicevoid
startService()
void
stop()
stop the servicevoid
stopService()
-
Methods inherited from class org.jpos.q2.QBeanSupport
addAttr, close, createElement, destroy, destroyService, getAttrs, getAttrs, getConfiguration, getDump, getFactory, getLoader, getLoaderURLS, getLog, getLogger, getName, getPersist, getProperties, getProperty, getRealm, getScheduledThreadPoolExecutor, getServer, getState, getStateAsString, init, isModified, running, setAttr, setConfiguration, setLogger, setModified, setName, setPersist, setProperty, setRealm, setServer, setState
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jpos.q2.QBean
destroy, getState, getStateAsString, init
-
Methods inherited from interface org.jpos.q2.QBeanSupportMBean
getDump, getLoader, getLoaderURLS, getLogger, getName, getRealm, getServer, setLogger, setName, setPersist, setRealm, setServer
-
Methods inherited from interface org.jpos.q2.QPersist
getPersist, isModified
-
-
-
-
Constructor Detail
-
QBeanFactory
public QBeanFactory()
-
-
Method Detail
-
initService
public void initService() throws java.lang.Exception
- Overrides:
initService
in classQBeanSupport
- Throws:
java.lang.Exception
-
start
public void start()
Description copied from interface:QBean
start the service- Specified by:
start
in interfaceQBean
- Overrides:
start
in classQBeanSupport
-
stop
public void stop()
Description copied from interface:QBean
stop the service- Specified by:
stop
in interfaceQBean
- Overrides:
stop
in classQBeanSupport
-
startService
public void startService()
- Overrides:
startService
in classQBeanSupport
-
stopService
public void stopService()
- Overrides:
stopService
in classQBeanSupport
-
getBean
public java.lang.Object getBean(java.lang.String id)
- Specified by:
getBean
in interfaceQBeanFactoryMBean
-
-