|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory
public abstract class ProxyObjectFactory
ProxyObjectFactory Base upon which Proxy Object Factories may build. Defines abstractions to:
| Constructor Summary | |
|---|---|
ProxyObjectFactory()
|
|
| Method Summary | |
|---|---|
protected ProxyFactory |
createProxyFactoryProxy(javax.naming.Name name,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> refAddrs,
java.lang.String proxyFactoryRegistryKey)
Deprecated. |
java.lang.Object |
getObjectInstance(java.lang.Object obj,
javax.naming.Name name,
javax.naming.Context nameCtx,
java.util.Hashtable<?,?> environment)
Returns an appropriate Proxy based on the Reference Address information associated with the Reference (obj) bound at name in the specified nameCtx with specified environment. |
protected abstract java.lang.Object |
getProxy(ProxyFactory proxyFactory,
javax.naming.Name name,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> referenceAddresses)
|
protected abstract java.lang.Class<?> |
getProxyFactoryClass()
Obtains the type or supertype used by proxy factories for this Object Factory |
protected ProxyFactory |
getProxyFactoryFromJNDI(java.lang.String proxyFactoryKey,
javax.naming.Context context,
java.util.Hashtable<?,?> environment)
Returns the ProxyFactory from the JNDI. |
protected java.lang.String |
getSingleReferenceAddressValue(javax.naming.Name name,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> referenceAddresses,
java.lang.String refAddrType)
Obtains the single value of the specified type as obtained from the specified reference addresses bound at the specified Name. |
protected java.lang.String |
getSingleRequiredReferenceAddressValue(javax.naming.Name name,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> referenceAddresses,
java.lang.String refAddrType)
Obtains the single value of the specified type as obtained from the specified reference addresses bound at the specified Name. |
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 |
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 |
protected java.lang.Object |
redefineProxyInTcl(java.lang.Object proxy)
If the specified proxy has been defined outside of this naming Context's ClassLoader, it must be reconstructed using the TCL so we avoid CCE. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProxyObjectFactory()
| Method Detail |
|---|
public java.lang.Object getObjectInstance(java.lang.Object obj,
javax.naming.Name name,
javax.naming.Context nameCtx,
java.util.Hashtable<?,?> environment)
throws java.lang.Exception
getObjectInstance in interface javax.naming.spi.ObjectFactoryjava.lang.ExceptionObjectFactory.getObjectInstance(java.lang.Object,
javax.naming.Name, javax.naming.Context, java.util.Hashtable)
@Deprecated
protected ProxyFactory createProxyFactoryProxy(javax.naming.Name name,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> refAddrs,
java.lang.String proxyFactoryRegistryKey)
throws java.lang.Exception
ProxyObjectFactory is no longer responsible for creating a proxy
to the ProxyFactory. Instead the ProxyObjectFactory will
lookup in the JNDI for the ProxyFactory using the
proxyFactoryRegistryKey. The responsibility of
binding the proxyfactory to jndi will rest with the JndiSessionRegistrarBase
and it's sub-implementations.
name - refAddrs - proxyFactoryRegistryKey -
java.lang.Exception
protected ProxyFactory getProxyFactoryFromJNDI(java.lang.String proxyFactoryKey,
javax.naming.Context context,
java.util.Hashtable<?,?> environment)
ProxyFactory from the JNDI.
proxyFactoryKey - The key to ProxyFactory in the JNDIcontext - The JNDI contextenvironment - JNDI environment
protected java.lang.String getSingleRequiredReferenceAddressValue(javax.naming.Name name,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> referenceAddresses,
java.lang.String refAddrType)
name - referenceAddresses - refAddrType -
protected java.lang.String getSingleReferenceAddressValue(javax.naming.Name name,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> referenceAddresses,
java.lang.String refAddrType)
name - referenceAddresses - refAddrType -
protected boolean hasBusiness(javax.naming.Name name,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> referenceAddresses)
name - referenceAddresses -
protected java.lang.Object redefineProxyInTcl(java.lang.Object proxy)
proxy - protected boolean hasLocalBusiness(java.util.Map<java.lang.String,java.util.List<java.lang.String>> referenceAddresses)
referenceAddresses -
protected boolean hasRemoteBusiness(java.util.Map<java.lang.String,java.util.List<java.lang.String>> referenceAddresses)
referenceAddresses -
protected abstract java.lang.Object getProxy(ProxyFactory proxyFactory,
javax.naming.Name name,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> referenceAddresses)
protected abstract java.lang.Class<?> getProxyFactoryClass()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||