|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.proxy.ejb.ProxyFactory
As we remove the one one association between container STACK and invoker we keep this around. IN the future the creation of proxies is a task done on a container basis but the container as a logical representation. In other words, the container "Entity with RMI/IIOP" is not a container stack but an association at the invocation level that points to all metadata for a given container.
In other words this is here for legacy reason and to not disrupt the container at once. In particular we declare that we "implement" the container invoker interface when we are just implementing the Proxy generation calls. Separation of concern. todo eliminate this class, at least in its present form.
Nested Class Summary |
Nested classes inherited from class org.jboss.ejb.GenericEntityObjectFactory (src) |
GenericEntityObjectFactory.UTIL (src) |
Field Summary | |
protected static java.lang.String |
BEAN_INTERCEPTOR
|
protected java.util.ArrayList |
beanInterceptorClasses
The proxy-config/client-interceptors/bean stack |
protected Invoker (src) |
beanInvoker
|
protected Container (src) |
container
|
EJBMetaData (src) |
ejbMetaData
|
protected EJBHome (src) |
home
|
protected static java.lang.String |
HOME_INTERCEPTOR
|
protected java.util.ArrayList |
homeInterceptorClasses
The proxy-config/client-interceptors/home stack |
protected Invoker (src) |
homeInvoker
|
protected boolean |
includeIClientIface
A flag indicating if the IClientContainer interface should be added |
protected InvokerProxyBindingMetaData (src) |
invokerMetaData
|
protected boolean |
isServiceEndpointOnly
|
protected ObjectName (src) |
jmxName
|
protected int |
jmxNameHash
|
protected java.lang.String |
jndiBinding
|
protected static java.lang.String |
LIST_ENTITY_INTERCEPTOR
|
protected java.util.ArrayList |
listEntityInterceptorClasses
The proxy-config/client-interceptors/entity-list stack |
protected static Logger (src) |
log
|
protected java.lang.reflect.Constructor |
proxyClassConstructor
|
protected EJBObject (src) |
statelessObject
|
Constructor Summary | |
ProxyFactory()
|
Method Summary | |
protected void |
bindProxy()
The bindProxy method creates the home proxy and binds
the home into jndi. |
void |
create()
create the service, do expensive operations etc |
void |
destroy()
destroy the service, tear down |
java.lang.Object |
getEJBHome()
This method is called whenever the EJBHome implementation for this container is needed. |
EJBMetaData (src) |
getEJBMetaData()
This method is called whenever the metadata for this container is needed. |
java.util.Collection |
getEntityCollection(java.util.Collection ids)
Create a Collection EJBObject proxies for an entity given its primary keys. |
java.lang.Object |
getEntityEJBObject(java.lang.Object id)
Create an EJBObject proxy for an entity given its primary key. |
java.lang.Object |
getStatefulSessionEJBObject(java.lang.Object id)
Create an EJBObject proxy for a stateful session given its session id. |
java.lang.Object |
getStatelessSessionEJBObject()
Return the EJBObject proxy for stateless sessions. |
protected void |
initInterceptorClasses()
Load the client interceptor classes |
boolean |
isIdentical(Container (src) container,
Invocation (src) mi)
Protocol specific isIdentical implementation |
protected void |
loadInterceptorChain(java.util.ArrayList chain,
ClientContainer (src) client)
The loadInterceptorChain create instances of interceptor
classes previously loaded in loadInterceptorClasses |
protected void |
loadInterceptorClasses(java.util.ArrayList classes,
org.w3c.dom.Element interceptors)
The loadInterceptorClasses load an interceptor classes from
configuration |
protected void |
rebindHomeProxy()
|
void |
setContainer(Container (src) con)
This callback is set by the container so that the plugin may access it |
void |
setInvokerBinding(java.lang.String binding)
Set the invoker jndi binding |
void |
setInvokerMetaData(InvokerProxyBindingMetaData (src) metadata)
Set the invoker meta data so that the ProxyFactory can initialize properly |
protected void |
setupInvokers()
Lookup the invokers in the object registry. |
void |
start()
Become fully available. |
void |
stop()
stop the service |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final java.lang.String HOME_INTERCEPTOR
protected static final java.lang.String BEAN_INTERCEPTOR
protected static final java.lang.String LIST_ENTITY_INTERCEPTOR
protected static Logger (src) log
public EJBMetaData (src) ejbMetaData
protected boolean isServiceEndpointOnly
protected EJBHome (src) home
protected EJBObject (src) statelessObject
protected java.lang.String jndiBinding
protected ObjectName (src) jmxName
protected int jmxNameHash
protected Invoker (src) beanInvoker
protected Invoker (src) homeInvoker
protected InvokerProxyBindingMetaData (src) invokerMetaData
protected java.util.ArrayList homeInterceptorClasses
protected java.util.ArrayList beanInterceptorClasses
protected java.util.ArrayList listEntityInterceptorClasses
protected boolean includeIClientIface
protected Container (src) container
protected java.lang.reflect.Constructor proxyClassConstructor
Constructor Detail |
public ProxyFactory()
Method Detail |
public void setContainer(Container (src) con)
ContainerPlugin (src)
setContainer
in interface ContainerPlugin (src)
con
- The container using this plugin. This may be null if the
plugin is being disassociated from a container.public void setInvokerMetaData(InvokerProxyBindingMetaData (src) metadata)
EJBProxyFactory (src)
setInvokerMetaData
in interface EJBProxyFactory (src)
public void setInvokerBinding(java.lang.String binding)
EJBProxyFactory (src)
setInvokerBinding
in interface EJBProxyFactory (src)
public void create() throws java.lang.Exception
Service (src)
create
in interface Service (src)
java.lang.Exception
public void start() throws java.lang.Exception
start
in interface Service (src)
java.lang.Exception
protected void setupInvokers() throws java.lang.Exception
java.lang.Exception
protected void initInterceptorClasses() throws java.lang.Exception
java.lang.Exception
protected void loadInterceptorClasses(java.util.ArrayList classes, org.w3c.dom.Element interceptors) throws java.lang.Exception
loadInterceptorClasses
load an interceptor classes from
configuration
java.lang.Exception
- if an error occursprotected void loadInterceptorChain(java.util.ArrayList chain, ClientContainer (src) client) throws java.lang.Exception
loadInterceptorChain
create instances of interceptor
classes previously loaded in loadInterceptorClasses
java.lang.Exception
- if an error occursprotected void bindProxy() throws java.lang.Exception
bindProxy
method creates the home proxy and binds
the home into jndi. It also creates the InvocationContext and client
container and interceptor chain.
java.lang.Exception
- if an error occursprotected void rebindHomeProxy() throws javax.naming.NamingException
javax.naming.NamingException
public void stop()
Service (src)
stop
in interface Service (src)
public void destroy()
Service (src)
destroy
in interface Service (src)
public boolean isIdentical(Container (src) container, Invocation (src) mi)
EJBProxyFactory (src)
isIdentical
in interface EJBProxyFactory (src)
container
- the containermi
- the invocation
public EJBMetaData (src) getEJBMetaData()
EJBProxyFactory (src)
getEJBMetaData
in interface EJBProxyFactory (src)
public java.lang.Object getEJBHome()
EJBProxyFactory (src)
getEJBHome
in interface EJBProxyFactory (src)
public java.lang.Object getStatelessSessionEJBObject()
getStatelessSessionEJBObject
in interface EJBProxyFactory (src)
public java.lang.Object getStatefulSessionEJBObject(java.lang.Object id)
getStatefulSessionEJBObject
in interface EJBProxyFactory (src)
id
- The id of the session.
public java.lang.Object getEntityEJBObject(java.lang.Object id)
getEntityEJBObject
in interface EJBProxyFactory (src)
id
- The primary key of the entity.
public java.util.Collection getEntityCollection(java.util.Collection ids)
getEntityCollection
in interface EJBProxyFactory (src)
ids
- Enumeration of primary keys.
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |