org.apache.geronimo.yoko
Class ORBConfigAdapter

java.lang.Object
  extended by org.apache.geronimo.yoko.ORBConfigAdapter
All Implemented Interfaces:
ConfigAdapter, GBeanLifecycle

public class ORBConfigAdapter
extends Object
implements GBeanLifecycle, ConfigAdapter

A ConfigAdapter instance for the Apache Yoko CORBA support.


Constructor Summary
ORBConfigAdapter()
           
 
Method Summary
 ORB createClientORB(CSSBean client)
          Create an ORB for a CSSBean client context.
 Object createNameService(String host, int port)
          Create a transient name service instance using the specified host name and port.
 ORB createNameServiceClientORB(CSSBean client)
          Create an ORB for a CSSBean name service client context.
 ORB createServerORB(CORBABean server)
          Create an ORB for a CORBABean server context.
 void destroyNameService(Object ns)
          Destroy a name service instance created by a prior call to createNameService().
 void doFail()
           
 void doStart()
          Start the config adapter GBean.
 void doStop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ORBConfigAdapter

public ORBConfigAdapter()
Method Detail

doStart

public void doStart()
             throws Exception
Start the config adapter GBean. This is basically an opportunity to set any system properties required to make the ORB hook ups. In particular, this makes the ORB hookups for the RMI over IIOP support.

Specified by:
doStart in interface GBeanLifecycle
Throws:
Exception

doStop

public void doStop()
            throws Exception
Specified by:
doStop in interface GBeanLifecycle
Throws:
Exception

doFail

public void doFail()
Specified by:
doFail in interface GBeanLifecycle

createServerORB

public ORB createServerORB(CORBABean server)
                    throws ConfigException
Create an ORB for a CORBABean server context.

Specified by:
createServerORB in interface ConfigAdapter
Parameters:
server - The CORBABean that owns this ORB's configuration.
Returns:
An ORB instance configured for the CORBABean.
Throws:
ConfigException

createClientORB

public ORB createClientORB(CSSBean client)
                    throws ConfigException
Create an ORB for a CSSBean client context.

Specified by:
createClientORB in interface ConfigAdapter
Parameters:
client - The configured CSSBean used for access.
Returns:
An ORB instance configured for this client access.
Throws:
ConfigException

createNameServiceClientORB

public ORB createNameServiceClientORB(CSSBean client)
                               throws ConfigException
Create an ORB for a CSSBean name service client context.

Specified by:
createNameServiceClientORB in interface ConfigAdapter
Parameters:
client - The configured CSSBean used for access.
Returns:
An ORB instance configured for this client access.
Throws:
ConfigException

createNameService

public Object createNameService(String host,
                                int port)
                         throws ConfigException
Create a transient name service instance using the specified host name and port.

Specified by:
createNameService in interface ConfigAdapter
Parameters:
host - The String host name.
port - The port number of the listener.
Returns:
An opaque object that represents the name service.
Throws:
ConfigException

destroyNameService

public void destroyNameService(Object ns)
Destroy a name service instance created by a prior call to createNameService().

Specified by:
destroyNameService in interface ConfigAdapter
Parameters:
ns - The opaque name service object returned from a prior call to createNameService().


Copyright © 2003-2010 The Apache Geronimo development community. All Rights Reserved.