|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.ejb.plugins.local.BaseLocalProxyFactory
public class BaseLocalProxyFactory
The LocalProxyFactory implementation that handles local ejb interface proxies.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface 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 ContainerPlugincon - 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.ServiceException
public void start()
throws Exception
start in interface org.jboss.system.ServiceExceptionpublic void stop()
stop in interface org.jboss.system.Servicepublic void destroy()
destroy in interface org.jboss.system.Servicepublic Constructor getProxyClassConstructor()
public javax.ejb.EJBLocalHome getEJBLocalHome()
LocalProxyFactory
getEJBLocalHome in interface LocalProxyFactorypublic javax.ejb.EJBLocalObject getStatelessSessionEJBLocalObject()
LocalProxyFactory
getStatelessSessionEJBLocalObject in interface LocalProxyFactorypublic javax.ejb.EJBLocalObject getStatefulSessionEJBLocalObject(Object id)
LocalProxyFactory
getStatefulSessionEJBLocalObject in interface LocalProxyFactoryid - 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 LocalProxyFactoryid - the primary key of the entity
public javax.ejb.EJBLocalObject getEntityEJBLocalObject(Object id)
LocalProxyFactory
getEntityEJBLocalObject in interface LocalProxyFactoryid - the primary key of the entity
public Collection getEntityLocalCollection(Collection ids)
LocalProxyFactory
getEntityLocalCollection in interface LocalProxyFactoryids - enumeration of primary keys
public Object invokeHome(Method m,
Object[] args)
throws Exception
Exceptionpublic 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 | |||||||||