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()
          Fails the GBean.
 void doStart()
          Start the config adapter GBean.
 void doStop()
          Stops the target.
 
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
Description copied from interface: GBeanLifecycle
Stops the target. This informs the GBean that it is about to transition to the stopped state.

Specified by:
doStop in interface GBeanLifecycle
Throws:
Exception - if the target failed to stop; this will cause a transition to the failed state

doFail

public void doFail()
Description copied from interface: GBeanLifecycle
Fails the GBean. This informs the GBean that it is about to transition to the failed state.

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-2007 Apache Software Foundation. All Rights Reserved.