org.apache.myfaces.config.annotation
Interface LifecycleProvider2

All Superinterfaces:
LifecycleProvider
All Known Implementing Classes:
AllAnnotationLifecycleProvider, NoAnnotationLifecyleProvider, NoInjectionAnnotationLifecycleProvider, ResourceAnnotationLifecycleProvider, Tomcat7AnnotationLifecycleProvider, 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: 779422 $ $Date: 2009-05-27 23:10:24 -0500 (Wed, 27 May 2009) $

Method Summary
 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 interface org.apache.myfaces.config.annotation.LifecycleProvider
destroyInstance
 

Method Detail

newInstance

Object newInstance(String className)
                   throws ClassNotFoundException,
                          IllegalAccessException,
                          InstantiationException,
                          NamingException,
                          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:
ClassNotFoundException
IllegalAccessException
InstantiationException
NamingException
InvocationTargetException

postConstruct

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

Parameters:
o - object to initialize
Throws:
IllegalAccessException
InvocationTargetException


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