public class WebContainerInjectionProvider extends Object implements 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 and Description |
|---|
WebContainerInjectionProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
inject(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(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). |
public void inject(Object managedBean) throws InjectionProviderException
InjectionProviderThe implementation of this method must perform the following steps:
This method must not invoke any methods
annotated with @PostConstruct
inject in interface InjectionProvidermanagedBean - the target managed beanInjectionProviderException - if an error occurs during
resource injectionpublic void invokePreDestroy(Object managedBean) throws InjectionProviderException
InjectionProviderThe implemenation of this method must invoke any
method marked with the @PreDestroy annotation
(per the Common Annotations Specification).
invokePreDestroy in interface InjectionProvidermanagedBean - the target managed beanInjectionProviderException - if an error occurs when invoking
the method annotated by the @PreDestroy annotationpublic void invokePostConstruct(Object managedBean) throws InjectionProviderException
InjectionProviderThe implemenation of this method must invoke any
method marked with the @PostConstruct annotation
(per the Common Annotations Specification).
invokePostConstruct in interface InjectionProvidermanagedBean - the target managed beanInjectionProviderException - if an error occurs when invoking
the method annotated by the @PostConstruct annotationCopyright © 2010–2018 JBoss by Red Hat. All rights reserved.