org.openejb.corba.core
Class ContainerAdapter

java.lang.Object
  |
  +--org.openejb.corba.core.ContainerAdapter

public class ContainerAdapter
extends java.lang.Object

A CORBA Container Adapter is associated with an EJB Container.


Constructor Summary
ContainerAdapter(org.omg.CORBA.ORB orb, org.omg.PortableServer.POA poa, Container cntr, Initializer initializer)
          Constructor
 
Method Summary
 BeanProfile beans_from_corba_id(byte[] id)
          Return the Beans profiles table from another container
 BeanProfile beans_from_corba_id(RpcContainer container, byte[] id)
          Return the Beans profiles table from another container
 BeanProfile beans_from_ejb_id(byte[] id)
          Return the Beans profiles table from another container
 BeanProfile beans_from_ejb_id(RpcContainer container, byte[] id)
          Return the Beans profiles table from another container
 java.util.Hashtable beans()
          Return the Bean profiles table
 RpcContainer container()
          Return the container access
 BeanProfile createBeanProfile(ProxyInfo pinfo, byte[] bean_id)
          This operation is used to create a new bean profile.
 void exportHomeInterfaces()
          This operation is used by the initializer to export all home interfaces to the naming service.
 HomeProfile homes_from_corba_id(byte[] id)
          Return the Home profiles table
 HomeProfile homes_from_corba_id(RpcContainer container, byte[] id)
          Return the Home profiles table from another container
 HomeProfile homes_from_ejb_id(byte[] id)
          Return the Home profiles table
 HomeProfile homes_from_ejb_id(RpcContainer container, byte[] id)
          Return the Home profiles table from another container
 boolean manages(RpcContainer container)
          Return TRUE if the parameter is the same RPC container which is managed by this container adapter.
 org.omg.CORBA.ORB orb()
          Return the ORB reference
 org.omg.PortableServer.POA poa()
          Return the POA reference
 void removeBeanProfile(BeanProfile bean)
          Remove a bean profile
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainerAdapter

public ContainerAdapter(org.omg.CORBA.ORB orb,
                        org.omg.PortableServer.POA poa,
                        Container cntr,
                        Initializer initializer)
Constructor
Method Detail

container

public RpcContainer container()
Return the container access

orb

public org.omg.CORBA.ORB orb()
Return the ORB reference

poa

public org.omg.PortableServer.POA poa()
Return the POA reference

homes_from_corba_id

public HomeProfile homes_from_corba_id(byte[] id)
Return the Home profiles table

homes_from_corba_id

public HomeProfile homes_from_corba_id(RpcContainer container,
                                       byte[] id)
Return the Home profiles table from another container

homes_from_ejb_id

public HomeProfile homes_from_ejb_id(byte[] id)
Return the Home profiles table

homes_from_ejb_id

public HomeProfile homes_from_ejb_id(RpcContainer container,
                                     byte[] id)
Return the Home profiles table from another container

beans

public java.util.Hashtable beans()
Return the Bean profiles table

beans_from_ejb_id

public BeanProfile beans_from_ejb_id(byte[] id)
Return the Beans profiles table from another container

beans_from_ejb_id

public BeanProfile beans_from_ejb_id(RpcContainer container,
                                     byte[] id)
Return the Beans profiles table from another container

beans_from_corba_id

public BeanProfile beans_from_corba_id(byte[] id)
Return the Beans profiles table from another container

beans_from_corba_id

public BeanProfile beans_from_corba_id(RpcContainer container,
                                       byte[] id)
Return the Beans profiles table from another container

manages

public boolean manages(RpcContainer container)
Return TRUE if the parameter is the same RPC container which is managed by this container adapter.

exportHomeInterfaces

public void exportHomeInterfaces()
This operation is used by the initializer to export all home interfaces to the naming service.

createBeanProfile

public BeanProfile createBeanProfile(ProxyInfo pinfo,
                                     byte[] bean_id)
                              throws java.rmi.RemoteException
This operation is used to create a new bean profile. It creates a servant and a proxy for this bean.

removeBeanProfile

public void removeBeanProfile(BeanProfile bean)
Remove a bean profile