org.glassfish.osgiweb
Class OSGiWebModuleDecorator
java.lang.Object
org.glassfish.osgiweb.OSGiWebModuleDecorator
- All Implemented Interfaces:
- com.sun.enterprise.web.WebModuleDecorator
public class OSGiWebModuleDecorator
- extends Object
- implements com.sun.enterprise.web.WebModuleDecorator
This is where we cuistomize the StandardContext (or WebModule as you call it) object created for a WAB.
This class is responsible for the following customizations:
a) an attribute called Constants.BUNDLE_CONTEXT_ATTR in ServletContext of the web app
associated with the current OSGi bundle.
b) set a specialized FileDirContext object that restricts access to OSGI-INF and OSGI-OPT resources of a WAB
as required by the OSGi WAB spec.
c) discovering JSF faces config resources and setting them in an attribute called
Constants.FACES_CONFIG_ATTR.
d) discovering JSF facelet config resources and setting them in an attribute called
Constants.FACELET_CONFIG_ATTR.
e) discovering faces annotations in a WAB and setting them in an attribute called
The faces related attributes are used by various OSGiFacesXXXProviders that we install for a WAB. Mojarra
discovers and calls those providers as part of its initialization.
- Author:
- Sanjeeb.Sahoo@Sun.COM
- See Also:
OSGiFacesConfigResourceProvider,
OSGiFaceletConfigResourceProvider,
OSGiWebDeploymentContext.WABClassLoader.getResources(String)
|
Method Summary |
void |
decorate(com.sun.enterprise.web.WebModule module)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OSGiWebModuleDecorator
public OSGiWebModuleDecorator()
decorate
public void decorate(com.sun.enterprise.web.WebModule module)
- Specified by:
decorate in interface com.sun.enterprise.web.WebModuleDecorator
Copyright © 2012 GlassFish Community. All Rights Reserved.