|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.ejb.plugins.local.BaseLocalProxyFactory
The LocalProxyFactory implementation that handles local ejb interface proxies.
Nested Class Summary |
Nested classes inherited from class org.jboss.ejb.GenericEntityObjectFactory |
GenericEntityObjectFactory.UTIL |
Field Summary | |
protected Map |
beanMethodInvokerMap
|
protected Container |
container
|
protected javax.ejb.EJBLocalHome |
home
|
protected Map |
homeMethodInvokerMap
|
protected static Map |
invokerMap
A map of the BaseLocalProxyFactory instances keyed by localJndiName |
protected Class |
localClass
|
protected Class |
localHomeClass
|
protected String |
localJndiName
The JNDI name of the local home interface binding |
protected static org.jboss.logging.Logger |
log
|
protected Constructor |
proxyClassConstructor
|
protected javax.ejb.EJBLocalObject |
statelessObject
|
protected TransactionManager |
transactionManager
|
Constructor Summary | |
BaseLocalProxyFactory()
|
Method Summary | |
void |
create()
|
void |
destroy()
|
javax.ejb.EJBLocalHome |
getEJBLocalHome()
This method is called whenever the EJBLocalHome implementation for this container is needed. |
javax.ejb.EJBLocalObject |
getEntityEJBLocalObject(Object id)
This method is called whenever an EJBLocalObject implementation for an entitybean is needed. |
javax.ejb.EJBLocalObject |
getEntityEJBLocalObject(Object id,
boolean create)
This method is called whenever a new EJBLocalObject should be created. |
Object |
getEntityEJBObject(Object id)
|
Collection |
getEntityLocalCollection(Collection ids)
This method is called whenever a collection of EJBLocalObjects for a collection of primary keys is needed. |
String |
getJndiName()
|
Constructor |
getProxyClassConstructor()
|
javax.ejb.EJBLocalObject |
getStatefulSessionEJBLocalObject(Object id)
This method is called whenever an EJBLocalObject implementation for a stateful session bean is needed. |
javax.ejb.EJBLocalObject |
getStatelessSessionEJBLocalObject()
This method is called whenever an EJBLocalObject implementation for a stateless session bean is needed. |
Object |
invoke(Object id,
Method m,
Object[] args)
Invoke a local interface method. |
Object |
invokeHome(Method m,
Object[] args)
Invoke a Home interface method. |
void |
setContainer(Container con)
This callback is set by the container so that the plugin may access it |
void |
start()
|
void |
stop()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.jboss.logging.Logger log
protected static Map invokerMap
protected Container container
protected String localJndiName
protected TransactionManager transactionManager
protected javax.ejb.EJBLocalHome home
protected javax.ejb.EJBLocalObject statelessObject
protected Map beanMethodInvokerMap
protected Map homeMethodInvokerMap
protected Class localHomeClass
protected Class localClass
protected Constructor proxyClassConstructor
Constructor Detail |
public BaseLocalProxyFactory()
Method Detail |
public void setContainer(Container con)
ContainerPlugin
setContainer
in interface ContainerPlugin
con
- The container using this plugin. This may be null if the
plugin is being disassociated from a container.public void create() throws Exception
create
in interface org.jboss.system.Service
Exception
public void start() throws Exception
start
in interface org.jboss.system.Service
Exception
public void stop()
stop
in interface org.jboss.system.Service
public void destroy()
destroy
in interface org.jboss.system.Service
public Constructor getProxyClassConstructor()
public javax.ejb.EJBLocalHome getEJBLocalHome()
LocalProxyFactory
getEJBLocalHome
in interface LocalProxyFactory
public javax.ejb.EJBLocalObject getStatelessSessionEJBLocalObject()
LocalProxyFactory
getStatelessSessionEJBLocalObject
in interface LocalProxyFactory
public javax.ejb.EJBLocalObject getStatefulSessionEJBLocalObject(Object id)
LocalProxyFactory
getStatefulSessionEJBLocalObject
in interface LocalProxyFactory
id
- the id of the session
public Object getEntityEJBObject(Object id)
getEntityEJBObject
in interface GenericEntityObjectFactory
public javax.ejb.EJBLocalObject getEntityEJBLocalObject(Object id, boolean create)
LocalProxyFactory
getEntityEJBLocalObject
in interface LocalProxyFactory
id
- the primary key of the entity
public javax.ejb.EJBLocalObject getEntityEJBLocalObject(Object id)
LocalProxyFactory
getEntityEJBLocalObject
in interface LocalProxyFactory
id
- the primary key of the entity
public Collection getEntityLocalCollection(Collection ids)
LocalProxyFactory
getEntityLocalCollection
in interface LocalProxyFactory
ids
- enumeration of primary keys
public Object invokeHome(Method m, Object[] args) throws Exception
Exception
public String getJndiName()
public Object invoke(Object id, Method m, Object[] args) throws Exception
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |