Top Fields Constructors Methods
com.sun.faces.vendor

public Class Tomcat6InjectionProvider

extends DiscoverableInjectionProvider
Class Inheritance
Imports
com.sun.faces.spi.DiscoverableInjectionProvider, .InjectionProviderException, javax.servlet.ServletContext, org.apache.AnnotationProcessor

Field Summary

Modifier and TypeField and Description
private ServletContext

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private AnnotationProcessor
public void
inject(Object
the target managed bean
managedBean
)

Implements com.sun.faces.spi.InjectionProvider.inject.

The implementation of this method must perform the following steps:

  • Inject the supported resources per the Servlet 2.5 specification into the provided object
public void
invokePostConstruct(Object
the target managed bean
managedBean
)

Implements com.sun.faces.spi.InjectionProvider.invokePostConstruct.

The implemenation of this method must invoke any method marked with the @PostConstruct annotation (per the Common Annotations Specification).

public void
invokePreDestroy(Object
the target managed bean
managedBean
)

Implements com.sun.faces.spi.InjectionProvider.invokePreDestroy.

The implemenation of this method must invoke any method marked with the @PreDestroy annotation (per the Common Annotations Specification).

Inherited from com.sun.faces.spi.DiscoverableInjectionProvider:
isInjectionFeatureAvailable

Field Detail

servletContextback to summary
private ServletContext servletContext

Constructor Detail

Tomcat6InjectionProviderback to summary
public Tomcat6InjectionProvider(ServletContext servletContext)

Method Detail

getProcessorback to summary
private AnnotationProcessor getProcessor()
injectback to summary
public void inject(Object managedBean) throws InjectionProviderException

Implements com.sun.faces.spi.InjectionProvider.inject.

The implementation of this method must perform the following steps:

  • Inject the supported resources per the Servlet 2.5 specification into the provided object

This method must not invoke any methods annotated with @PostConstruct

Parameters
managedBean:Object

the target managed bean

Exceptions
InjectionProviderException:
if an error occurs during resource injection
invokePostConstructback to summary
public void invokePostConstruct(Object managedBean) throws InjectionProviderException

Implements com.sun.faces.spi.InjectionProvider.invokePostConstruct.

The implemenation of this method must invoke any method marked with the @PostConstruct annotation (per the Common Annotations Specification).

Parameters
managedBean:Object

the target managed bean

Exceptions
InjectionProviderException:
if an error occurs when invoking the method annotated by the @PostConstruct annotation
invokePreDestroyback to summary
public void invokePreDestroy(Object managedBean) throws InjectionProviderException

Implements com.sun.faces.spi.InjectionProvider.invokePreDestroy.

The implemenation of this method must invoke any method marked with the @PreDestroy annotation (per the Common Annotations Specification).

Parameters
managedBean:Object

the target managed bean

Exceptions
InjectionProviderException:
if an error occurs when invoking the method annotated by the @PreDestroy annotation