org.jboss.ejb3.proxy.objectfactory.session
Class SessionProxyObjectFactory

java.lang.Object
  extended by org.jboss.ejb3.proxy.objectfactory.ProxyObjectFactory
      extended by org.jboss.ejb3.proxy.objectfactory.Ejb3RegistrarProxyObjectFactory
          extended by org.jboss.ejb3.proxy.objectfactory.session.SessionProxyObjectFactory
All Implemented Interfaces:
java.io.Serializable, javax.naming.spi.ObjectFactory
Direct Known Subclasses:
StatefulSessionProxyObjectFactory, StatelessSessionProxyObjectFactory

public abstract class SessionProxyObjectFactory
extends Ejb3RegistrarProxyObjectFactory

SessionProxyObjectFactory A Base JNDI Object Factory responsible for parsing metadata obtained from Reference Address information, and returning the appropriate Session Proxy

See Also:
Serialized Form

Constructor Summary
SessionProxyObjectFactory()
           
 
Method Summary
protected  java.lang.Object createProxy(ProxyFactory factory, javax.naming.Name name, java.util.Map<java.lang.String,java.util.List<java.lang.String>> referenceAddresses)
          Creates an proxy from the appropriate ProxyFactory as determined by metadata in the specified reference addresses
protected  java.lang.Class<?> getProxyFactoryClass()
          Obtains the type or supertype used by proxy factories for this Object Factory
protected  boolean hasBusiness(javax.naming.Name name, java.util.Map<java.lang.String,java.util.List<java.lang.String>> referenceAddresses)
          Looks to the metadata specified by the reference addresses to determine if an EJB3 Business View is defined here.
protected  boolean hasHome(javax.naming.Name name, java.util.Map<java.lang.String,java.util.List<java.lang.String>> referenceAddresses)
          Looks to the metadata specified by the reference addresses to determine if an EJB2.x home interface is defined here.
protected  boolean hasLocalBusiness(java.util.Map<java.lang.String,java.util.List<java.lang.String>> referenceAddresses)
          Determines if the specified metadata contains a type of local business
protected  boolean hasRemoteBusiness(java.util.Map<java.lang.String,java.util.List<java.lang.String>> referenceAddresses)
          Determines if the specified metadata contains a type of remote business
 
Methods inherited from class org.jboss.ejb3.proxy.objectfactory.ProxyObjectFactory
createProxyFactoryProxy, getObjectInstance, getProxy, getSingleReferenceAddressValue, getSingleRequiredReferenceAddressValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.naming.spi.ObjectFactory
getObjectInstance
 

Constructor Detail

SessionProxyObjectFactory

public SessionProxyObjectFactory()
Method Detail

createProxy

protected java.lang.Object createProxy(ProxyFactory factory,
                                       javax.naming.Name name,
                                       java.util.Map<java.lang.String,java.util.List<java.lang.String>> referenceAddresses)
Creates an proxy from the appropriate ProxyFactory as determined by metadata in the specified reference addresses

Parameters:
name - The JNDI Name looked up
referenceAddresses - A Map of RefAddr instances in form key = type and value = List of values for this type

getProxyFactoryClass

protected java.lang.Class<?> getProxyFactoryClass()
Obtains the type or supertype used by proxy factories for this Object Factory

Specified by:
getProxyFactoryClass in class ProxyObjectFactory
Returns:

hasHome

protected boolean hasHome(javax.naming.Name name,
                          java.util.Map<java.lang.String,java.util.List<java.lang.String>> referenceAddresses)
Looks to the metadata specified by the reference addresses to determine if an EJB2.x home interface is defined here. Additionally checks to ensure that both remote and local homes are not bound to the same JNDI Address

Parameters:
name -
referenceAddresses -
Returns:

hasBusiness

protected boolean hasBusiness(javax.naming.Name name,
                              java.util.Map<java.lang.String,java.util.List<java.lang.String>> referenceAddresses)
Looks to the metadata specified by the reference addresses to determine if an EJB3 Business View is defined here. Additionally checks that both local and remote business interfaces are not bound to the same JNDI Address

Parameters:
name -
referenceAddresses -
Returns:

hasLocalBusiness

protected boolean hasLocalBusiness(java.util.Map<java.lang.String,java.util.List<java.lang.String>> referenceAddresses)
Determines if the specified metadata contains a type of local business

Parameters:
referenceAddresses -
Returns:

hasRemoteBusiness

protected boolean hasRemoteBusiness(java.util.Map<java.lang.String,java.util.List<java.lang.String>> referenceAddresses)
Determines if the specified metadata contains a type of remote business

Parameters:
referenceAddresses -
Returns: