public class GlassFishInjectionProvider
extends com.sun.faces.spi.DiscoverableInjectionProvider
implements com.sun.faces.spi.AnnotationScanner, com.sun.faces.spi.HighAvailabilityEnabler, com.sun.faces.spi.ThreadContext
This InjectionProvider is specific to the Payara/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 |
clearChildContext() |
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) |
Object |
getParentWebContext() |
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). |
void |
propagateWebContextToChild(Object context) |
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 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 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 Object getParentWebContext()
getParentWebContext in interface com.sun.faces.spi.ThreadContextpublic void propagateWebContextToChild(Object context)
propagateWebContextToChild in interface com.sun.faces.spi.ThreadContextpublic void clearChildContext()
clearChildContext in interface com.sun.faces.spi.ThreadContextpublic void enableHighAvailability(javax.servlet.ServletContext ctx)
enableHighAvailability in interface com.sun.faces.spi.HighAvailabilityEnablerctx - Copyright © 2019. All rights reserved.