org.jboss.ejb3.proxy.impl.objectfactory.session
Class SessionProxyObjectFactory
java.lang.Object
org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory
org.jboss.ejb3.proxy.impl.objectfactory.Ejb3RegistrarProxyObjectFactory
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SessionProxyObjectFactory
public SessionProxyObjectFactory()
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 upreferenceAddresses
- 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.