org.apache.geronimo.openejb
Class EjbContainer

java.lang.Object
  extended by org.apache.geronimo.openejb.EjbContainer
All Implemented Interfaces:
GBeanLifecycle

public class EjbContainer
extends Object
implements GBeanLifecycle


Field Summary
static GBeanInfo GBEAN_INFO
           
 
Constructor Summary
EjbContainer()
           
 
Method Summary
 void doFail()
          Fails the GBean.
 void doStart()
          Starts the GBean.
 void doStop()
          Stops the target.
static GBeanInfo getGBeanInfo()
           
 String getId()
           
 Class<? extends org.apache.openejb.assembler.classic.ContainerInfo> getInfoType()
           
 OpenEjbSystem getOpenEjbSystem()
           
 Properties getProperties()
           
 String getProvider()
           
 String getType()
           
 void setId(String id)
           
 void setInfoType(Class<? extends org.apache.openejb.assembler.classic.ContainerInfo> infoType)
           
 void setOpenEjbSystem(OpenEjbSystem openEjbSystem)
           
 void setProperties(Properties properties)
           
 void setProvider(String provider)
           
 void setType(String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GBEAN_INFO

public static final GBeanInfo GBEAN_INFO
Constructor Detail

EjbContainer

public EjbContainer()
Method Detail

getOpenEjbSystem

public OpenEjbSystem getOpenEjbSystem()

setOpenEjbSystem

public void setOpenEjbSystem(OpenEjbSystem openEjbSystem)

getId

public String getId()

setId

public void setId(String id)

getProperties

public Properties getProperties()

setProperties

public void setProperties(Properties properties)

getProvider

public String getProvider()

setProvider

public void setProvider(String provider)

getType

public String getType()

setType

public void setType(String type)

getInfoType

public Class<? extends org.apache.openejb.assembler.classic.ContainerInfo> getInfoType()

setInfoType

public void setInfoType(Class<? extends org.apache.openejb.assembler.classic.ContainerInfo> infoType)

doStart

public void doStart()
             throws Exception
Description copied from interface: GBeanLifecycle
Starts the GBean. This informs the GBean that it is about to transition to the running state.

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

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

getGBeanInfo

public static GBeanInfo getGBeanInfo()


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