public class Tomcat6InjectionProvider extends DiscoverableInjectionProvider
Constructor and Description |
---|
Tomcat6InjectionProvider(javax.servlet.ServletContext servletContext) |
Modifier and Type | Method and Description |
---|---|
void |
inject(java.lang.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 object
|
void |
invokePostConstruct(java.lang.Object managedBean)
The implemenation of this method must invoke any
method marked with the
@PostConstruct annotation
(per the Common Annotations Specification). |
void |
invokePreDestroy(java.lang.Object managedBean)
The implemenation of this method must invoke any
method marked with the
@PreDestroy annotation
(per the Common Annotations Specification). |
isInjectionFeatureAvailable
public Tomcat6InjectionProvider(javax.servlet.ServletContext servletContext)
public void inject(java.lang.Object managedBean) throws InjectionProviderException
The implementation of this method must perform the following steps:
This method must not invoke any methods
annotated with @PostConstruct
managedBean
- the target managed beanInjectionProviderException
- if an error occurs during
resource injectionpublic void invokePreDestroy(java.lang.Object managedBean) throws InjectionProviderException
The implemenation of this method must invoke any
method marked with the @PreDestroy
annotation
(per the Common Annotations Specification).
managedBean
- the target managed beanInjectionProviderException
- if an error occurs when invoking
the method annotated by the @PreDestroy
annotationpublic void invokePostConstruct(java.lang.Object managedBean) throws InjectionProviderException
The implemenation of this method must invoke any
method marked with the @PostConstruct
annotation
(per the Common Annotations Specification).
managedBean
- the target managed beanInjectionProviderException
- if an error occurs when invoking
the method annotated by the @PostConstruct
annotationCopyright ? 2002-2006 Sun Microsystems, Inc. All Rights Reserved.