org.apache.myfaces.config.annotation
Interface LifecycleProvider2

All Superinterfaces:
LifecycleProvider
All Known Implementing Classes:
AllAnnotationLifecycleProvider, NoAnnotationLifecyleProvider, NoInjectionAnnotationLifecycleProvider, ResourceAnnotationLifecycleProvider, TomcatAnnotationLifecycleProvider

public interface LifecycleProvider2
extends LifecycleProvider

Proposed interface to annotation service. An implementation of this class needs to know the appropriate classloader, dependencies to be injected, and lifecycle methods to be called.

Version:
$Rev: 775006 $ $Date: 2009-05-15 00:07:37 -0500 (Fri, 15 May 2009) $

Method Summary
 java.lang.Object newInstance(java.lang.String className)
          Create an object of the class with the supplied name, inject dependencies as appropriate.
 void postConstruct(java.lang.Object o)
          Call a postConstruct method as appropriate.
 
Methods inherited from interface org.apache.myfaces.config.annotation.LifecycleProvider
destroyInstance
 

Method Detail

newInstance

java.lang.Object newInstance(java.lang.String className)
                             throws java.lang.ClassNotFoundException,
                                    java.lang.IllegalAccessException,
                                    java.lang.InstantiationException,
                                    javax.naming.NamingException,
                                    java.lang.reflect.InvocationTargetException
Create an object of the class with the supplied name, inject dependencies as appropriate.

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

postConstruct

void postConstruct(java.lang.Object o)
                   throws java.lang.IllegalAccessException,
                          java.lang.reflect.InvocationTargetException
Call a postConstruct method as appropriate.

Parameters:
o - object to initialize
Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException


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