public class GlassFishInjectionProvider
extends com.sun.faces.spi.DiscoverableInjectionProvider
implements com.sun.faces.spi.AnnotationScanner, com.sun.faces.spi.HighAvailabilityEnabler
This InjectionProvider is specific to the
GlassFish/SJSAS 9.x PE/EE application servers.
| Constructor and Description |
|---|
GlassFishInjectionProvider(javax.servlet.ServletContext servletContext)
Constructs a new
GlassFishInjectionProvider instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
enableHighAvailability(javax.servlet.ServletContext ctx)
Method to test with HA has been enabled.
|
Map<String,List<com.sun.faces.spi.AnnotationScanner.ScannedAnnotation>> |
getAnnotatedClassesInCurrentModule(javax.servlet.ServletContext servletContext) |
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 GlassFishInjectionProvider(javax.servlet.ServletContext servletContext)
Constructs a new GlassFishInjectionProvider instance.
servletContext - public Map<String,List<com.sun.faces.spi.AnnotationScanner.ScannedAnnotation>> getAnnotatedClassesInCurrentModule(javax.servlet.ServletContext servletContext) throws com.sun.faces.spi.InjectionProviderException
getAnnotatedClassesInCurrentModule in interface com.sun.faces.spi.AnnotationScannercom.sun.faces.spi.InjectionProviderExceptionpublic void inject(Object managedBean) throws com.sun.faces.spi.InjectionProviderException
The implementation of this method must perform the following steps:
inject in interface com.sun.faces.spi.InjectionProvidermanagedBean - the target managed beancom.sun.faces.spi.InjectionProviderExceptionpublic void invokePreDestroy(Object managedBean) throws com.sun.faces.spi.InjectionProviderException
The implemenation of this method must invoke any
method marked with the @PreDestroy annotation
(per the Common Annotations Specification).
invokePreDestroy in interface com.sun.faces.spi.InjectionProvidermanagedBean - the target managed beancom.sun.faces.spi.InjectionProviderExceptionpublic void invokePostConstruct(Object managedBean) throws com.sun.faces.spi.InjectionProviderException
The implemenation of this method must invoke any
method marked with the @PostConstruct annotation
(per the Common Annotations Specification).
invokePostConstruct in interface com.sun.faces.spi.InjectionProvidermanagedBean - the target managed beancom.sun.faces.spi.InjectionProviderException - if an error occurs when invoking
the method annotated by the @PostConstruct annotationpublic void enableHighAvailability(javax.servlet.ServletContext ctx)
enableHighAvailability in interface com.sun.faces.spi.HighAvailabilityEnablerctx - Copyright © 2017. All rights reserved.