public interface IdentityEJBClientContextSelector extends ContextSelector<EJBClientContext>
ContextSelector
which can select EJB client contexts based on a EJBClientContextIdentifier
.Modifier and Type | Method and Description |
---|---|
EJBClientContext |
getContext(EJBClientContextIdentifier identifier)
Returns a context for the passed
identifier . |
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 . |
getCurrent
void registerContext(EJBClientContextIdentifier identifier, EJBClientContext context)
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
identifier
- The EJB client context identifiercontext
- The EJB client contextEJBClientContext unRegisterContext(EJBClientContextIdentifier identifier)
EJBClientContext
, for the passed identifier
.
If no EJBClientContext
was registered for the passed identifier
, then this method returns null.identifier
- The EJB client context identifierEJBClientContext
if any. Else returns null.EJBClientContext getContext(EJBClientContextIdentifier identifier)
identifier
. If there's no such context, then null is returned.identifier
- Identity of the context. Cannot be nullIllegalArgumentException
- If the passed identifier
is null.Copyright © 2016 JBoss by Red Hat. All rights reserved.