org.jboss.ejb.client.remoting
Class ConfigBasedEJBClientContextSelector
java.lang.Object
org.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector
- All Implemented Interfaces:
- ContextSelector<EJBClientContext>
public class ConfigBasedEJBClientContextSelector
- extends Object
- implements ContextSelector<EJBClientContext>
An EJB client context selector which uses EJBClientConfiguration
to create RemotingConnectionEJBReceiver
s.
- Author:
- Jaikiran Pai
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigBasedEJBClientContextSelector
public ConfigBasedEJBClientContextSelector(EJBClientConfiguration ejbClientConfiguration)
- Creates a
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.
- Parameters:
ejbClientConfiguration
- The EJB client configuration to use
getCurrent
public EJBClientContext getCurrent()
- Description copied from interface:
ContextSelector
- Get the current instance, returning
null
if none are valid in the current context.
- Specified by:
getCurrent
in interface ContextSelector<EJBClientContext>
- Returns:
- the instance, or
null
if there is none
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.