jPOS 1.6.5 API Documentation

org.jpos.bsh
Class BSHGroupSelector

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

public class BSHGroupSelector
extends BSHTransactionParticipant
implements GroupSelector

Author:
AMarques

Field Summary
 
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.bsh.BSHTransactionParticipant
abort, commit, 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jpos.transaction.TransactionParticipant
abort, commit, prepare
 

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
Throws:
ConfigurationException

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)

jPOS.org