|
||||||||||
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(javax.faces.context.ExternalContext externalContext)
|
Method Summary | |
---|---|
void |
destroyInstance(java.lang.Object instance)
Take whatever steps are needed to shut down the object, including calling a preDestroy method. |
boolean |
isAvailable()
|
java.lang.Object |
newInstance(java.lang.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(java.lang.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(javax.faces.context.ExternalContext externalContext)
Method Detail |
---|
public 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
LifecycleProvider
newInstance
in interface LifecycleProvider
newInstance
in interface LifecycleProvider2
className
- name of the class of the desired object
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.InstantiationException
javax.naming.NamingException
java.lang.reflect.InvocationTargetException
public void destroyInstance(java.lang.Object instance) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
LifecycleProvider
destroyInstance
in interface LifecycleProvider
instance
- object to shut down.
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
public void postConstruct(java.lang.Object instance) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
LifecycleProvider2
postConstruct
in interface LifecycleProvider2
instance
- object to initialize
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
public boolean isAvailable()
isAvailable
in interface DiscoverableLifecycleProvider
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |