|
||||||||||
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(Name name,
Map<String,List<String>> refAddrs,
String proxyFactoryRegistryKey)
Creates a remoting proxy to the proxy factory. |
Object |
getObjectInstance(Object obj,
Name name,
Context nameCtx,
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 Object |
getProxy(ProxyFactory proxyFactory,
Name name,
Map<String,List<String>> referenceAddresses)
|
protected abstract Class<?> |
getProxyFactoryClass()
Obtains the type or supertype used by proxy factories for this Object Factory |
protected String |
getSingleReferenceAddressValue(Name name,
Map<String,List<String>> referenceAddresses,
String refAddrType)
Obtains the single value of the specified type as obtained from the specified reference addresses bound at the specified Name. |
protected String |
getSingleRequiredReferenceAddressValue(Name name,
Map<String,List<String>> referenceAddresses,
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(Name name,
Map<String,List<String>> referenceAddresses)
Looks to the metadata specified by the reference addresses to determine if an EJB3 Business View is defined here. |
protected boolean |
hasLocalBusiness(Map<String,List<String>> referenceAddresses)
Determines if the specified metadata contains a type of local business |
protected boolean |
hasRemoteBusiness(Map<String,List<String>> referenceAddresses)
Determines if the specified metadata contains a type of remote business |
protected Object |
redefineProxyInTcl(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 Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?,?> environment) throws Exception
getObjectInstance
in interface ObjectFactory
Exception
ObjectFactory.getObjectInstance(java.lang.Object,
javax.naming.Name, javax.naming.Context, java.util.Hashtable)
protected ProxyFactory createProxyFactoryProxy(Name name, Map<String,List<String>> refAddrs, String proxyFactoryRegistryKey) throws Exception
name
- refAddrs
- proxyFactoryRegistryKey
-
Exception
protected String getSingleRequiredReferenceAddressValue(Name name, Map<String,List<String>> referenceAddresses, String refAddrType)
name
- referenceAddresses
- refAddrType
-
protected String getSingleReferenceAddressValue(Name name, Map<String,List<String>> referenceAddresses, String refAddrType)
name
- referenceAddresses
- refAddrType
-
protected boolean hasBusiness(Name name, Map<String,List<String>> referenceAddresses)
name
- referenceAddresses
-
protected Object redefineProxyInTcl(Object proxy)
proxy
- protected boolean hasLocalBusiness(Map<String,List<String>> referenceAddresses)
referenceAddresses
-
protected boolean hasRemoteBusiness(Map<String,List<String>> referenceAddresses)
referenceAddresses
-
protected abstract Object getProxy(ProxyFactory proxyFactory, Name name, Map<String,List<String>> referenceAddresses)
protected abstract Class<?> getProxyFactoryClass()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |