org.jboss.proxy.ejb
Class IORFactory

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

public class IORFactory
extends Object
implements 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: 81018 $

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.ejb.GenericEntityObjectFactory
GenericEntityObjectFactory.UTIL
 
Field Summary
 
Fields inherited from interface org.jboss.ejb.AllowedOperationsFlags
IN_AFTER_BEGIN, IN_AFTER_COMPLETION, IN_BEFORE_COMPLETION, IN_BUSINESS_METHOD, IN_EJB_ACTIVATE, IN_EJB_CREATE, IN_EJB_FIND, IN_EJB_HOME, IN_EJB_LOAD, IN_EJB_PASSIVATE, IN_EJB_POST_CREATE, IN_EJB_REMOVE, IN_EJB_STORE, IN_EJB_TIMEOUT, IN_INTERCEPTOR_METHOD, IN_SERVICE_ENDPOINT_METHOD, IN_SET_ENTITY_CONTEXT, IN_SET_MESSAGE_DRIVEN_CONTEXT, IN_SET_SESSION_CONTEXT, IN_UNSET_ENTITY_CONTEXT, NOT_ALLOWED
 
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(Container container, 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(Container container)
           
 void setInvokerBinding(String binding)
           
 void setInvokerMetaData(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(Container container)
Specified by:
setContainer in interface ContainerPlugin

create

public void create()
            throws Exception
Specified by:
create in interface Service
Throws:
Exception

start

public void start()
           throws Exception
Specified by:
start in interface Service
Throws:
Exception

stop

public void stop()
Specified by:
stop in interface Service

destroy

public void destroy()
Specified by:
destroy in interface Service

setInvokerMetaData

public void setInvokerMetaData(InvokerProxyBindingMetaData imd)
Specified by:
setInvokerMetaData in interface EJBProxyFactory

setInvokerBinding

public void setInvokerBinding(String binding)
Specified by:
setInvokerBinding in interface EJBProxyFactory

isIdentical

public boolean isIdentical(Container container,
                           Invocation mi)
Specified by:
isIdentical in interface EJBProxyFactory

getEJBMetaData

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

getEJBHome

public Object getEJBHome()
Specified by:
getEJBHome in interface EJBProxyFactory

getStatelessSessionEJBObject

public Object getStatelessSessionEJBObject()
Specified by:
getStatelessSessionEJBObject in interface EJBProxyFactory

getStatefulSessionEJBObject

public Object getStatefulSessionEJBObject(Object id)
Specified by:
getStatefulSessionEJBObject in interface EJBProxyFactory

getEntityEJBObject

public Object getEntityEJBObject(Object id)
Specified by:
getEntityEJBObject in interface EJBProxyFactory
Specified by:
getEntityEJBObject in interface GenericEntityObjectFactory

getEntityCollection

public Collection getEntityCollection(Collection ids)
Specified by:
getEntityCollection in interface 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 © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.