Package com.sun.faces.vendor
Class WebContainerInjectionProvider
- java.lang.Object
-
- com.sun.faces.vendor.WebContainerInjectionProvider
-
- All Implemented Interfaces:
InjectionProvider
public class WebContainerInjectionProvider extends Object implements InjectionProvider
This
InjectionProviderwill be used if thePostConstructandPreDestroyannotations are present, but no specificInjectionProviderhas been configured.It's important to note that this will not provide resource injection.
-
-
Constructor Summary
Constructors Constructor Description WebContainerInjectionProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinject(Object managedBean)The implementation of this method must perform the following steps: Inject the supported resources per the Servlet 2.5 specification into the provided objectvoidinvokePostConstruct(Object managedBean)The implemenation of this method must invoke any method marked with the@PostConstructannotation (per the Common Annotations Specification).voidinvokePreDestroy(Object managedBean)The implemenation of this method must invoke any method marked with the@PreDestroyannotation (per the Common Annotations Specification).
-
-
-
Method Detail
-
inject
public void inject(Object managedBean) throws InjectionProviderException
Description copied from interface:InjectionProviderThe 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:
injectin interfaceInjectionProvider- Parameters:
managedBean- the target managed bean- Throws:
InjectionProviderException- if an error occurs during resource injection
-
invokePreDestroy
public void invokePreDestroy(Object managedBean) throws InjectionProviderException
Description copied from interface:InjectionProviderThe implemenation of this method must invoke any method marked with the
@PreDestroyannotation (per the Common Annotations Specification).- Specified by:
invokePreDestroyin interfaceInjectionProvider- Parameters:
managedBean- the target managed bean- Throws:
InjectionProviderException- if an error occurs when invoking the method annotated by the@PreDestroyannotation
-
invokePostConstruct
public void invokePostConstruct(Object managedBean) throws InjectionProviderException
Description copied from interface:InjectionProviderThe implemenation of this method must invoke any method marked with the
@PostConstructannotation (per the Common Annotations Specification).- Specified by:
invokePostConstructin interfaceInjectionProvider- Parameters:
managedBean- the target managed bean- Throws:
InjectionProviderException- if an error occurs when invoking the method annotated by the@PostConstructannotation
-
-