Package org.jpos.transaction.participant
Class BSHGroupSelector
- java.lang.Object
-
- org.jpos.util.SimpleLogSource
-
- org.jpos.transaction.participant.BSHTransactionParticipant
-
- org.jpos.transaction.participant.BSHGroupSelector
-
- All Implemented Interfaces:
XmlConfigurable
,AbortParticipant
,GroupSelector
,TransactionConstants
,TransactionParticipant
,LogSource
public class BSHGroupSelector extends BSHTransactionParticipant implements GroupSelector
-
-
Field Summary
Fields Modifier and Type Field Description 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
-
-
Constructor Summary
Constructors Constructor Description BSHGroupSelector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
defaultSelect(long id, java.io.Serializable context)
java.lang.String
select(long id, java.io.Serializable context)
void
setConfiguration(org.jdom2.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.jdom2.Element e) throws ConfigurationException
- Specified by:
setConfiguration
in interfaceXmlConfigurable
- Overrides:
setConfiguration
in classBSHTransactionParticipant
- Parameters:
e
- Configuration element- Throws:
ConfigurationException
- on error
-
select
public java.lang.String select(long id, java.io.Serializable context)
- Specified by:
select
in interfaceGroupSelector
- Parameters:
id
- transaction idcontext
- transaction context- Returns:
- group name or null for no-action
-
defaultSelect
public java.lang.String defaultSelect(long id, java.io.Serializable context)
-
-