org.apache.geronimo.corba
Class CSSBean

java.lang.Object
  extended by org.apache.geronimo.corba.CSSBean
All Implemented Interfaces:
ORBConfiguration, GBeanLifecycle

public class CSSBean
extends Object
implements GBeanLifecycle, ORBConfiguration

A CSSBean is an ORB instance configured for accessing EJBs using a specific security profile. A single CSSBean can be referenced by multiple ejb-refs that share a common security profile. For each CSSBean instance, there will be a backing ORB configured with the appropriate interceptors and principal information to access the target object.


Constructor Summary
CSSBean()
           
CSSBean(ConfigAdapter configAdapter, TransactionManager transactionManager, SSLConfig ssl, AbstractName abstractName, ClassLoader classLoader)
           
 
Method Summary
 void doFail()
          Fails the GBean.
 void doStart()
          Start this GBean instance, which essentially sets up an ORB and configures a client context for handling requests.
 void doStop()
          Stops the target.
 CSSConfig getCssConfig()
           
 String getDescription()
           
 Object getHome(URI nsURI, String name)
           
 ORB getORB()
           
 SSLConfig getSslConfig()
          Return the SSLConfig used for this ORB instance.
 TSSConfig getTssConfig()
          Retrieve the TSSConfig settings to a ConfigAdapter instance.
 String getURI()
          Return the retrieval URI for this bean.
 void setCssConfig(CSSConfig config)
           
 void setDescription(String description)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSSBean

public CSSBean()

CSSBean

public CSSBean(ConfigAdapter configAdapter,
               TransactionManager transactionManager,
               SSLConfig ssl,
               AbstractName abstractName,
               ClassLoader classLoader)
        throws ClassNotFoundException,
               IllegalAccessException,
               InstantiationException
Throws:
ClassNotFoundException
IllegalAccessException
InstantiationException
Method Detail

getDescription

public String getDescription()

setDescription

public void setDescription(String description)

getCssConfig

public CSSConfig getCssConfig()

setCssConfig

public void setCssConfig(CSSConfig config)

getTssConfig

public TSSConfig getTssConfig()
Description copied from interface: ORBConfiguration
Retrieve the TSSConfig settings to a ConfigAdapter instance.

Specified by:
getTssConfig in interface ORBConfiguration
Returns:
An appropriate TSSConfig object containing transport-level security information.

getSslConfig

public SSLConfig getSslConfig()
Return the SSLConfig used for this ORB instance. if one has not been configured, this returns a default configuration.

Specified by:
getSslConfig in interface ORBConfiguration
Returns:
The SSLConfig object use to manage transport-level security.

getORB

public ORB getORB()

getURI

public String getURI()
Return the retrieval URI for this bean.

Returns:
The URI for the bean AbstractName;

getHome

public Object getHome(URI nsURI,
                      String name)

doStart

public void doStart()
             throws Exception
Start this GBean instance, which essentially sets up an ORB and configures a client context for handling requests.

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


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.