org.apache.geronimo.myfaces
Class LifecycleProviderGBean

java.lang.Object
  extended by org.apache.geronimo.myfaces.LifecycleProviderGBean
All Implemented Interfaces:
GBeanLifecycle, org.apache.myfaces.config.annotation.LifecycleProvider

public class LifecycleProviderGBean
extends Object
implements org.apache.myfaces.config.annotation.LifecycleProvider, GBeanLifecycle


Field Summary
static GBeanInfo GBEAN_INFO
           
 
Constructor Summary
LifecycleProviderGBean(Holder holder, Map componentContext, LifecycleProviderFactorySource factory, Kernel kernel, ClassLoader classLoader)
           
 
Method Summary
 void destroyInstance(Object o)
           
 void doFail()
          Fails the GBean.
 void doStart()
          Starts the GBean.
 void doStop()
          Stops the target.
static GBeanInfo getGBeanInfo()
           
 Object newInstance(String className)
           
 
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

LifecycleProviderGBean

public LifecycleProviderGBean(Holder holder,
                              Map componentContext,
                              LifecycleProviderFactorySource factory,
                              Kernel kernel,
                              ClassLoader classLoader)
                       throws NamingException
Throws:
NamingException
Method Detail

newInstance

public Object newInstance(String className)
                   throws ClassNotFoundException,
                          IllegalAccessException,
                          InstantiationException,
                          NamingException,
                          InvocationTargetException
Specified by:
newInstance in interface org.apache.myfaces.config.annotation.LifecycleProvider
Throws:
ClassNotFoundException
IllegalAccessException
InstantiationException
NamingException
InvocationTargetException

destroyInstance

public void destroyInstance(Object o)
                     throws IllegalAccessException,
                            InvocationTargetException
Specified by:
destroyInstance in interface org.apache.myfaces.config.annotation.LifecycleProvider
Throws:
IllegalAccessException
InvocationTargetException

doStart

public void doStart()
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

doStop

public void doStop()
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

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.