java.lang.Object
com.sun.faces.vendor.WebContainerInjectionProvider
- All Implemented Interfaces:
InjectionProvider
This InjectionProvider
will be used if the PostConstruct
and PreDestroy
annotations are present, but no specific InjectionProvider
has been configured.
It's important to note that this will not provide resource injection.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
The implementation of this method must perform the following steps: Inject the supported resources per the Servlet 2.5 specification into the provided objectvoid
invokePostConstruct
(Object managedBean) The implemenation of this method must invoke any method marked with the@PostConstruct
annotation (per the Common Annotations Specification).void
invokePreDestroy
(Object managedBean) The implemenation of this method must invoke any method marked with the@PreDestroy
annotation (per the Common Annotations Specification).
-
Constructor Details
-
WebContainerInjectionProvider
public WebContainerInjectionProvider()
-
-
Method Details
-
inject
Description copied from interface:InjectionProvider
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
- Specified by:
inject
in interfaceInjectionProvider
- Parameters:
managedBean
- the target managed bean- Throws:
InjectionProviderException
- if an error occurs during resource injection
-
invokePreDestroy
Description copied from interface:InjectionProvider
The implemenation of this method must invoke any method marked with the
@PreDestroy
annotation (per the Common Annotations Specification).- Specified by:
invokePreDestroy
in interfaceInjectionProvider
- Parameters:
managedBean
- the target managed bean- Throws:
InjectionProviderException
- if an error occurs when invoking the method annotated by the@PreDestroy
annotation
-
invokePostConstruct
Description copied from interface:InjectionProvider
The implemenation of this method must invoke any method marked with the
@PostConstruct
annotation (per the Common Annotations Specification).- Specified by:
invokePostConstruct
in interfaceInjectionProvider
- Parameters:
managedBean
- the target managed bean- Throws:
InjectionProviderException
- if an error occurs when invoking the method annotated by the@PostConstruct
annotation
-