org.jpos.transaction.participant
Class BSHGroupSelector

java.lang.Object
  extended by org.jpos.util.SimpleLogSource
      extended by org.jpos.transaction.participant.BSHTransactionParticipant
          extended by org.jpos.transaction.participant.BSHGroupSelector
All Implemented Interfaces:
XmlConfigurable, AbortParticipant, GroupSelector, TransactionConstants, TransactionParticipant, LogSource

public class BSHGroupSelector
extends BSHTransactionParticipant
implements GroupSelector


Field Summary
protected  BSHMethod selectMethod
           
 
Fields inherited from class org.jpos.transaction.participant.BSHTransactionParticipant
abortMethod, commitMethod, prepareForAbortMethod, prepareMethod
 
Fields inherited from class org.jpos.util.SimpleLogSource
logger, realm
 
Fields inherited from interface org.jpos.transaction.TransactionConstants
ABORTED, NO_JOIN, PAUSE, PREPARED, READONLY, RETRY
 
Constructor Summary
BSHGroupSelector()
           
 
Method Summary
 java.lang.String defaultSelect(long id, java.io.Serializable context)
           
 java.lang.String select(long id, java.io.Serializable context)
           
 void setConfiguration(org.jdom.Element e)
           
 
Methods inherited from class org.jpos.transaction.participant.BSHTransactionParticipant
abort, commit, defaultAbort, defaultCommit, defaultPrepare, executeMethod, prepare, prepareForAbort
 
Methods inherited from class org.jpos.util.SimpleLogSource
error, error, getLogger, getRealm, info, info, setLogger, setRealm, warning, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jpos.transaction.TransactionParticipant
abort, commit, prepare
 

Field Detail

selectMethod

protected BSHMethod selectMethod
Constructor Detail

BSHGroupSelector

public BSHGroupSelector()
Method Detail

setConfiguration

public void setConfiguration(org.jdom.Element e)
                      throws ConfigurationException
Specified by:
setConfiguration in interface XmlConfigurable
Overrides:
setConfiguration in class BSHTransactionParticipant
Parameters:
e - Configuration element
Throws:
ConfigurationException - on error

select

public java.lang.String select(long id,
                               java.io.Serializable context)
Specified by:
select in interface GroupSelector
Parameters:
id - transaction id
context - transaction context
Returns:
group name or null for no-action

defaultSelect

public java.lang.String defaultSelect(long id,
                                      java.io.Serializable context)