Package org.jpos.q2.iso
Class ContextMaker
- java.lang.Object
-
- org.jpos.q2.QBeanSupport
-
- org.jpos.q2.iso.ContextMaker
-
- All Implemented Interfaces:
java.lang.Runnable
,Configurable
,QBean
,QBeanSupportMBean
,QPersist
,Loggeable
public class ContextMaker extends QBeanSupport implements java.lang.Runnable, Loggeable
A utility QBean to provide the ability to monitor an 'in' queue for items that will be placed in Context, along with any specified context-values and then place on the 'out' queue - for a TransactionManager to process.
-
-
Field Summary
-
Fields inherited from class org.jpos.q2.QBeanSupport
cfg, log, scheduledThreadPoolExecutor
-
-
Constructor Summary
Constructors Constructor Description ContextMaker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dump(java.io.PrintStream p, java.lang.String indent)
void
initService()
void
run()
void
setConfiguration(Configuration cfg)
void
startService()
void
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, setLogger, setModified, setName, setPersist, setProperty, setRealm, setServer, setState, start, stop
-
-
-
-
Constructor Detail
-
ContextMaker
public ContextMaker()
-
-
Method Detail
-
initService
public void initService()
- Overrides:
initService
in classQBeanSupport
-
startService
public void startService()
- Overrides:
startService
in classQBeanSupport
-
stopService
public void stopService()
- Overrides:
stopService
in classQBeanSupport
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
setConfiguration
public void setConfiguration(Configuration cfg) throws ConfigurationException
- Specified by:
setConfiguration
in interfaceConfigurable
- Overrides:
setConfiguration
in classQBeanSupport
- Parameters:
cfg
- Configuration object- Throws:
ConfigurationException
-
-