org.apache.myfaces.config.annotation
Class NoAnnotationLifecyleProvider

java.lang.Object
  extended by org.apache.myfaces.config.annotation.NoAnnotationLifecyleProvider
All Implemented Interfaces:
LifecycleProvider, LifecycleProvider2

public class NoAnnotationLifecyleProvider
extends Object
implements LifecycleProvider2


Constructor Summary
NoAnnotationLifecyleProvider()
           
 
Method Summary
 void destroyInstance(Object o)
          Take whatever steps are needed to shut down the object, including calling a preDestroy method.
 Object newInstance(String className)
          Create an object of the class with the supplied name, inject dependencies as appropriate.
 void postConstruct(Object o)
          Call a postConstruct method as appropriate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoAnnotationLifecyleProvider

public NoAnnotationLifecyleProvider()
Method Detail

destroyInstance

public void destroyInstance(Object o)
                     throws IllegalAccessException,
                            InvocationTargetException
Description copied from interface: LifecycleProvider
Take whatever steps are needed to shut down the object, including calling a preDestroy method.

Specified by:
destroyInstance in interface LifecycleProvider
Parameters:
o - object to shut down.
Throws:
IllegalAccessException
InvocationTargetException

newInstance

public Object newInstance(String className)
                   throws InstantiationException,
                          IllegalAccessException,
                          InvocationTargetException,
                          ClassNotFoundException
Description copied from interface: LifecycleProvider2
Create an object of the class with the supplied name, inject dependencies as appropriate.

Specified by:
newInstance in interface LifecycleProvider
Specified by:
newInstance in interface LifecycleProvider2
Parameters:
className - name of the class of the desired object
Returns:
a fully constructed, dependency-injected, and initialized object.
Throws:
InstantiationException
IllegalAccessException
InvocationTargetException
ClassNotFoundException

postConstruct

public void postConstruct(Object o)
                   throws IllegalAccessException,
                          InvocationTargetException
Description copied from interface: LifecycleProvider2
Call a postConstruct method as appropriate.

Specified by:
postConstruct in interface LifecycleProvider2
Parameters:
o - object to initialize
Throws:
IllegalAccessException
InvocationTargetException


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.