org.jpos.q2.iso
Class ContextMaker

java.lang.Object
  extended by org.jpos.q2.QBeanSupport
      extended by org.jpos.q2.iso.ContextMaker
All Implemented Interfaces:
Runnable, Configurable, QBean, QBeanSupportMBean, QPersist, Loggeable

public class ContextMaker
extends QBeanSupport
implements 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.

Version:
$Revision: 2854 $ $Date: 2010-01-02 10:34:31 +0000 (Sat, 02 Jan 2010) $
Author:
Mark Salter

Field Summary
 
Fields inherited from class org.jpos.q2.QBeanSupport
cfg, log
 
Fields inherited from interface org.jpos.q2.QBean
DESTROYED, FAILED, STARTED, STARTING, stateString, STOPPED, STOPPING
 
Constructor Summary
ContextMaker()
           
 
Method Summary
 void dump(PrintStream p, String indent)
           
 void initService()
           
 void run()
           
 void setConfiguration(Configuration cfg)
           
 void startService()
           
 void stopService()
           
 
Methods inherited from class org.jpos.q2.QBeanSupport
addAttr, createElement, destroy, destroyService, getAttrs, getAttrs, getConfiguration, getFactory, getLoader, getLoaderURLS, getLog, getLogger, getName, getPersist, getProperties, getProperty, getRealm, getServer, getState, getStateAsString, init, isModified, running, setAttr, setLogger, setModified, setName, setPersist, setProperty, setRealm, setServer, setState, shutdownQ2, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextMaker

public ContextMaker()
Method Detail

initService

public void initService()
Overrides:
initService in class QBeanSupport

startService

public void startService()
Overrides:
startService in class QBeanSupport

stopService

public void stopService()
Overrides:
stopService in class QBeanSupport

run

public void run()
Specified by:
run in interface Runnable

setConfiguration

public void setConfiguration(Configuration cfg)
                      throws ConfigurationException
Specified by:
setConfiguration in interface Configurable
Overrides:
setConfiguration in class QBeanSupport
Parameters:
cfg - Configuration object
Throws:
ConfigurationException

dump

public void dump(PrintStream p,
                 String indent)
Specified by:
dump in interface Loggeable


Copyright © 1998-2012 jPOS.org. All Rights Reserved.