org.glassfish.osgiweb
Class OSGiFacesConfigResourceProvider

java.lang.Object
  extended by org.glassfish.osgiweb.OSGiFacesConfigResourceProvider
All Implemented Interfaces:
com.sun.faces.spi.ConfigurationResourceProvider, com.sun.faces.spi.FacesConfigResourceProvider

public class OSGiFacesConfigResourceProvider
extends Object
implements com.sun.faces.spi.FacesConfigResourceProvider, com.sun.faces.spi.ConfigurationResourceProvider

Built-in com.sun.faces.config.configprovider.MetaInfFacesConfigResourceProvider can't discover resources named as xxx.faces-config.xml. That can only discover resources named as faces-config.xml. This config resource provider knows how to iterate over bundle entries in order to discover the resources not found by mojarra resource provider. It is registered as a META-INF service so that mojarra can discover it.

Author:
Sanjeeb.Sahoo@Sun.COM
See Also:
OSGiWebModuleDecorator.discoverJSFConfigs(org.osgi.framework.Bundle, java.util.Collection, java.util.Collection)

Field Summary
 
Fields inherited from interface com.sun.faces.spi.FacesConfigResourceProvider
SERVICES_KEY
 
Constructor Summary
OSGiFacesConfigResourceProvider()
           
 
Method Summary
 Collection<URI> getResources(javax.servlet.ServletContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSGiFacesConfigResourceProvider

public OSGiFacesConfigResourceProvider()
Method Detail

getResources

public Collection<URI> getResources(javax.servlet.ServletContext context)
Specified by:
getResources in interface com.sun.faces.spi.ConfigurationResourceProvider


Copyright © 2012 GlassFish Community. All Rights Reserved.