|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.proxy.ejb.IORFactory
This is an IIOP "proxy factory" for EJBHome
s and
EJBObject
s. Rather than creating Java proxies (as the JRMP
proxy factory does), this factory creates CORBA IORs.
An IORFactory
is associated to a given enterprise bean. It
registers with the IIOP invoker two CORBA servants: an
EjbHomeCorbaServant
for the bean's
EJBHome
and an EjbObjectCorbaServant
for the
bean's EJBObject
s.
Nested Class Summary |
Nested classes inherited from class org.jboss.ejb.GenericEntityObjectFactory (src) |
GenericEntityObjectFactory.UTIL (src) |
Field Summary |
Constructor Summary | |
IORFactory()
|
Method Summary | |
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)
This method is called whenever a collection of EJBObjects for a collection of primary keys is needed. |
java.lang.Object |
getEntityEJBObject(java.lang.Object id)
This method is called whenever an EJBObject implementation for an entitybean is needed. |
java.lang.Object |
getStatefulSessionEJBObject(java.lang.Object id)
This method is called whenever an EJBObject implementation for a stateful session bean is needed. |
java.lang.Object |
getStatelessSessionEJBObject()
This method is called whenever an EJBObject implementation for a stateless session bean is needed. |
boolean |
isIdentical(Container (src) container,
Invocation (src) mi)
Protocol specific isIdentical implementation |
static void |
rebind(org.omg.CosNaming.NamingContextExt ctx,
java.lang.String strName,
org.omg.CORBA.Object obj)
(Re)binds an object to a name in a given CORBA naming context, creating any non-existent intermediate contexts along the way. |
static java.lang.String |
rmiRepositoryId(java.lang.Class clz)
Returns the CORBA repository id of a given the RMI-IDL interface. |
void |
setContainer(Container (src) container)
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) imd)
Set the invoker meta data so that the ProxyFactory can initialize properly |
void |
start()
start the service, create is already called |
void |
stop()
stop the service |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IORFactory()
Method Detail |
public void setContainer(Container (src) container)
ContainerPlugin (src)
setContainer
in interface ContainerPlugin (src)
container
- The container using this plugin. This may be null if the
plugin is being disassociated from a container.public void create() throws java.lang.Exception
Service (src)
create
in interface Service (src)
java.lang.Exception
public void start() throws java.lang.Exception
Service (src)
start
in interface Service (src)
java.lang.Exception
public void stop()
Service (src)
stop
in interface Service (src)
public void destroy()
Service (src)
destroy
in interface Service (src)
public void setInvokerMetaData(InvokerProxyBindingMetaData (src) imd)
EJBProxyFactory (src)
setInvokerMetaData
in interface EJBProxyFactory (src)
public void setInvokerBinding(java.lang.String binding)
EJBProxyFactory (src)
setInvokerBinding
in interface EJBProxyFactory (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()
EJBProxyFactory (src)
getStatelessSessionEJBObject
in interface EJBProxyFactory (src)
public java.lang.Object getStatefulSessionEJBObject(java.lang.Object id)
EJBProxyFactory (src)
getStatefulSessionEJBObject
in interface EJBProxyFactory (src)
id
- The id of the session.
public java.lang.Object getEntityEJBObject(java.lang.Object id)
EJBProxyFactory (src)
getEntityEJBObject
in interface EJBProxyFactory (src)
id
- The primary key of the entity.
public java.util.Collection getEntityCollection(java.util.Collection ids)
EJBProxyFactory (src)
getEntityCollection
in interface EJBProxyFactory (src)
ids
- Enumeration of primary keys.
public static java.lang.String rmiRepositoryId(java.lang.Class clz)
public static void rebind(org.omg.CosNaming.NamingContextExt ctx, java.lang.String strName, org.omg.CORBA.Object obj) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |