JBoss EJB client 1.0.3.Final

org.jboss.ejb.client.remoting
Class ConfigBasedEJBClientContextSelector

java.lang.Object
  extended by 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 RemotingConnectionEJBReceivers.

Author:
Jaikiran Pai

Constructor Summary
ConfigBasedEJBClientContextSelector(EJBClientConfiguration ejbClientConfiguration)
          Creates a ConfigBasedEJBClientContextSelector using the passed ejbClientConfiguration.
 
Method Summary
 EJBClientContext getCurrent()
          Get the current instance, returning null if none are valid in the current context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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

JBoss EJB client 1.0.3.Final

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.