|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.config.annotation.Tomcat7AnnotationLifecycleProvider
public class Tomcat7AnnotationLifecycleProvider
An annotation lifecycle provider for Tomcat 7.
Constructor Summary | |
---|---|
Tomcat7AnnotationLifecycleProvider(ExternalContext externalContext)
|
Method Summary | |
---|---|
void |
destroyInstance(Object instance)
Take whatever steps are needed to shut down the object, including calling a preDestroy method. |
boolean |
isAvailable()
|
Object |
newInstance(String className)
Create an object of the class with the supplied name, inject dependencies as appropriate, and call a postContruct method as appropriate. |
void |
postConstruct(Object instance)
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 |
---|
public Tomcat7AnnotationLifecycleProvider(ExternalContext externalContext)
Method Detail |
---|
public Object newInstance(String className) throws ClassNotFoundException, IllegalAccessException, InstantiationException, NamingException, InvocationTargetException
LifecycleProvider
newInstance
in interface LifecycleProvider
newInstance
in interface LifecycleProvider2
className
- name of the class of the desired object
ClassNotFoundException
IllegalAccessException
InstantiationException
NamingException
InvocationTargetException
public void destroyInstance(Object instance) throws IllegalAccessException, InvocationTargetException
LifecycleProvider
destroyInstance
in interface LifecycleProvider
instance
- object to shut down.
IllegalAccessException
InvocationTargetException
public void postConstruct(Object instance) throws IllegalAccessException, InvocationTargetException
LifecycleProvider2
postConstruct
in interface LifecycleProvider2
instance
- object to initialize
IllegalAccessException
InvocationTargetException
public boolean isAvailable()
isAvailable
in interface DiscoverableLifecycleProvider
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |