站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 iiop API Documentation 英文版文档

IORFactory (JBoss IIOP Plugin API) - JBoss 3.2.7 iiop API Documentation 英文版文档


org.jboss.proxy.ejb
Class IORFactory

java.lang.Object
  extended byorg.jboss.proxy.ejb.IORFactory
All Implemented Interfaces:
org.jboss.ejb.ContainerPlugin, org.jboss.ejb.EJBProxyFactory, org.jboss.ejb.GenericEntityObjectFactory, org.jboss.system.Service

public class IORFactory
extends Object
implements org.jboss.ejb.EJBProxyFactory

This is an IIOP "proxy factory" for EJBHomes and EJBObjects. 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 EJBObjects.

Version:
$Revision: 1.5.2.2 $

Nested Class Summary
 
Nested classes inherited from class org.jboss.ejb.GenericEntityObjectFactory
org.jboss.ejb.GenericEntityObjectFactory.UTIL
 
Constructor Summary
IORFactory()
           
 
Method Summary
 void create()
           
 void destroy()
           
 Object getEJBHome()
           
 javax.ejb.EJBMetaData getEJBMetaData()
           
 Collection getEntityCollection(Collection ids)
           
 Object getEntityEJBObject(Object id)
           
 Object getStatefulSessionEJBObject(Object id)
           
 Object getStatelessSessionEJBObject()
           
 boolean isIdentical(org.jboss.ejb.Container container, org.jboss.invocation.Invocation mi)
           
static void rebind(NamingContextExt ctx, String strName, 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 String rmiRepositoryId(Class clz)
          Returns the CORBA repository id of a given the RMI-IDL interface.
 void setContainer(org.jboss.ejb.Container container)
           
 void setInvokerBinding(String binding)
           
 void setInvokerMetaData(org.jboss.metadata.InvokerProxyBindingMetaData imd)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IORFactory

public IORFactory()
Method Detail

setContainer

public void setContainer(org.jboss.ejb.Container container)
Specified by:
setContainer in interface org.jboss.ejb.ContainerPlugin

create

public void create()
            throws Exception
Specified by:
create in interface org.jboss.system.Service
Throws:
Exception

start

public void start()
           throws Exception
Specified by:
start in interface org.jboss.system.Service
Throws:
Exception

stop

public void stop()
Specified by:
stop in interface org.jboss.system.Service

destroy

public void destroy()
Specified by:
destroy in interface org.jboss.system.Service

setInvokerMetaData

public void setInvokerMetaData(org.jboss.metadata.InvokerProxyBindingMetaData imd)
Specified by:
setInvokerMetaData in interface org.jboss.ejb.EJBProxyFactory

setInvokerBinding

public void setInvokerBinding(String binding)
Specified by:
setInvokerBinding in interface org.jboss.ejb.EJBProxyFactory

isIdentical

public boolean isIdentical(org.jboss.ejb.Container container,
                           org.jboss.invocation.Invocation mi)

getEJBMetaData

public javax.ejb.EJBMetaData getEJBMetaData()
Specified by:
getEJBMetaData in interface org.jboss.ejb.EJBProxyFactory

getEJBHome

public Object getEJBHome()
Specified by:
getEJBHome in interface org.jboss.ejb.EJBProxyFactory

getStatelessSessionEJBObject

public Object getStatelessSessionEJBObject()
Specified by:
getStatelessSessionEJBObject in interface org.jboss.ejb.EJBProxyFactory

getStatefulSessionEJBObject

public Object getStatefulSessionEJBObject(Object id)
Specified by:
getStatefulSessionEJBObject in interface org.jboss.ejb.EJBProxyFactory

getEntityEJBObject

public Object getEntityEJBObject(Object id)
Specified by:
getEntityEJBObject in interface org.jboss.ejb.EJBProxyFactory

getEntityCollection

public Collection getEntityCollection(Collection ids)
Specified by:
getEntityCollection in interface org.jboss.ejb.EJBProxyFactory

rmiRepositoryId

public static String rmiRepositoryId(Class clz)
Returns the CORBA repository id of a given the RMI-IDL interface.


rebind

public static void rebind(NamingContextExt ctx,
                          String strName,
                          Object obj)
                   throws Exception
(Re)binds an object to a name in a given CORBA naming context, creating any non-existent intermediate contexts along the way.

Throws:
Exception


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.