|
JBoss EJB client 2.0.0.Beta4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector
public class ConfigBasedEJBClientContextSelector
An EJB client context selector which uses EJBClientConfiguration to create RemotingConnectionEJBReceivers.
| Field Summary | |
|---|---|
protected EJBClientConfiguration |
ejbClientConfiguration
|
protected EJBClientContext |
ejbClientContext
|
| Constructor Summary | |
|---|---|
ConfigBasedEJBClientContextSelector(EJBClientConfiguration ejbClientConfiguration)
Creates a ConfigBasedEJBClientContextSelector using the passed ejbClientConfiguration. |
|
ConfigBasedEJBClientContextSelector(EJBClientConfiguration ejbClientConfiguration,
ClassLoader classLoader)
Creates a ConfigBasedEJBClientContextSelector using the passed ejbClientConfiguration. |
|
| Method Summary | |
|---|---|
EJBClientContext |
getContext(EJBClientContextIdentifier identifier)
Returns a context for the passed identifier. |
EJBClientContext |
getCurrent()
Get the current instance, returning null if none are valid in the current context. |
void |
registerContext(EJBClientContextIdentifier identifier,
EJBClientContext context)
Associates the passed EJBClientContext to the identifier
It's up to the individual implementations to decide whether to throw an exception
if there's already an EJBClientContext registered for the passed identifier |
EJBClientContext |
unRegisterContext(EJBClientContextIdentifier identifier)
Unregisters and returns a previously registered EJBClientContext, for the passed identifier. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final EJBClientConfiguration ejbClientConfiguration
protected final EJBClientContext ejbClientContext
| Constructor Detail |
|---|
public ConfigBasedEJBClientContextSelector(EJBClientConfiguration ejbClientConfiguration)
ConfigBasedEJBClientContextSelector using the passed ejbClientConfiguration.
This constructor creates a EJBClientContext and uses the passed ejbClientConfiguration to create and
associated EJB receivers to that context. If the passed ejbClientConfiguration is null, then this selector will create a EJBClientContext
without any associated EJB receivers.
ejbClientConfiguration - The EJB client configuration to use
public ConfigBasedEJBClientContextSelector(EJBClientConfiguration ejbClientConfiguration,
ClassLoader classLoader)
ConfigBasedEJBClientContextSelector using the passed ejbClientConfiguration.
This constructor creates a EJBClientContext and uses the passed ejbClientConfiguration to create and
associated EJB receivers to that context. If the passed ejbClientConfiguration is null, then this selector will create a EJBClientContext
without any associated EJB receivers.
ejbClientConfiguration - The EJB client configuration to useclassLoader - The classloader that will be used to create the EJBClientContext| Method Detail |
|---|
public EJBClientContext getCurrent()
ContextSelectornull if none are valid in the current context.
getCurrent in interface ContextSelector<EJBClientContext>null if there is none
public void registerContext(EJBClientContextIdentifier identifier,
EJBClientContext context)
IdentityEJBClientContextSelectorEJBClientContext to the identifier
It's up to the individual implementations to decide whether to throw an exception
if there's already an EJBClientContext registered for the passed identifier
registerContext in interface IdentityEJBClientContextSelectoridentifier - The EJB client context identifiercontext - The EJB client contextpublic EJBClientContext unRegisterContext(EJBClientContextIdentifier identifier)
IdentityEJBClientContextSelectorEJBClientContext, for the passed identifier.
If no EJBClientContext was registered for the passed identifier, then this method returns null.
unRegisterContext in interface IdentityEJBClientContextSelectoridentifier - The EJB client context identifier
EJBClientContext if any. Else returns null.public EJBClientContext getContext(EJBClientContextIdentifier identifier)
IdentityEJBClientContextSelectoridentifier. If there's no such context, then null is returned.
getContext in interface IdentityEJBClientContextSelectoridentifier - Identity of the context. Cannot be null
|
JBoss EJB client 2.0.0.Beta4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||