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

java.lang.Object
  extended by org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory
      extended by org.jboss.ejb3.proxy.impl.objectfactory.Ejb3RegistrarProxyObjectFactory
          extended by org.jboss.ejb3.proxy.impl.objectfactory.session.SessionProxyObjectFactory
All Implemented Interfaces:
Serializable, 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

Version:
$Revision: $
Author:
ALR
See Also:
Serialized Form

Constructor Summary
SessionProxyObjectFactory()
           
 
Method Summary
protected  Object createProxy(ProxyFactory factory, Name name, Map<String,List<String>> referenceAddresses)
          Creates an proxy from the appropriate ProxyFactory as determined by metadata in the specified reference addresses
protected  Class<SessionSpecProxyFactory> getProxyFactoryClass()
          Obtains the type or supertype used by proxy factories for this Object Factory
protected  boolean hasHome(Name name, Map<String,List<String>> referenceAddresses)
          Looks to the metadata specified by the reference addresses to determine if an EJB2.x home interface is defined here.
 
Methods inherited from class org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory
createProxyFactoryProxy, getObjectInstance, getProxy, getSingleReferenceAddressValue, getSingleRequiredReferenceAddressValue, hasBusiness, hasLocalBusiness, hasRemoteBusiness, redefineProxyInTcl
 
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 Object createProxy(ProxyFactory factory,
                             Name name,
                             Map<String,List<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 Class<SessionSpecProxyFactory> 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(Name name,
                          Map<String,List<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:


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.