Package org.apache.myfaces.resource
Class InternalClassLoaderResourceLoader
- java.lang.Object
- 
- org.apache.myfaces.resource.ResourceLoader
- 
- org.apache.myfaces.resource.InternalClassLoaderResourceLoader
 
 
- 
 public class InternalClassLoaderResourceLoader extends ResourceLoader A resource loader implementation which loads resources from the thread ClassLoader.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.apache.myfaces.resource.ResourceLoaderResourceLoader.VersionComparator
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static StringMYFACES_JSF_MODEDefine the mode used for faces.js file: normal : contains everything, including i18n (faces-i18n.js) minimal: contains everything, excluding i18n (faces-i18n.js)static StringUSE_MULTIPLE_JS_FILES_FOR_JSF_UNCOMPRESSED_JSIf this param is true and the project stage is development mode, the source javascript files will be loaded separately instead have all in just one file, to preserve line numbers and make javascript debugging of the default jsf javascript file more simple.- 
Fields inherited from class org.apache.myfaces.resource.ResourceLoaderVERSION_INVALID
 
- 
 - 
Constructor SummaryConstructors Constructor Description InternalClassLoaderResourceLoader(String prefix)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceMetacreateResourceMeta(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion)protected ClassLoadergetClassLoader()Returns the ClassLoader to use when looking up resources under the top level package.StringgetLibraryVersion(String path)Return the max available version found (if exists) or return null if no version available.InputStreamgetResourceInputStream(ResourceMeta resourceMeta)URLgetResourceURL(String resourceId)URLgetResourceURL(ResourceMeta resourceMeta)Return the max available version found (if exists) or return null if no version available.StringgetResourceVersion(String path)Iterator<String>iterator(FacesContext facesContext, String path, int maxDepth, ResourceVisitOption... options)booleanlibraryExists(String libraryName)- 
Methods inherited from class org.apache.myfaces.resource.ResourceLoadercreateResourceMeta, getPrefix, getVersionComparator, resourceExists, setPrefix, setVersionComparator
 
- 
 
- 
- 
- 
Field Detail- 
USE_MULTIPLE_JS_FILES_FOR_JSF_UNCOMPRESSED_JS@JSFWebConfigParam(since="2.0.1", defaultValue="false", expectedValues="true,false", group="render") public static final String USE_MULTIPLE_JS_FILES_FOR_JSF_UNCOMPRESSED_JSIf this param is true and the project stage is development mode, the source javascript files will be loaded separately instead have all in just one file, to preserve line numbers and make javascript debugging of the default jsf javascript file more simple.- See Also:
- Constant Field Values
 
 - 
MYFACES_JSF_MODE@JSFWebConfigParam(since="2.0.10,2.1.4", defaultValue="normal", expectedValues="normal, minimal-modern, minimal", group="render") public static final String MYFACES_JSF_MODEDefine the mode used for faces.js file:- normal : contains everything, including i18n (faces-i18n.js)
- minimal: contains everything, excluding i18n (faces-i18n.js)
 If org.apache.myfaces.USE_MULTIPLE_JS_FILES_FOR_JSF_UNCOMPRESSED_JS param is set to true and project stage is Development, this param is ignored. - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
InternalClassLoaderResourceLoaderpublic InternalClassLoaderResourceLoader(String prefix) 
 
- 
 - 
Method Detail- 
getLibraryVersionpublic String getLibraryVersion(String path) Description copied from class:ResourceLoaderReturn the max available version found (if exists) or return null if no version available.- Specified by:
- getLibraryVersionin class- ResourceLoader
 
 - 
getResourceInputStreampublic InputStream getResourceInputStream(ResourceMeta resourceMeta) - Specified by:
- getResourceInputStreamin class- ResourceLoader
 
 - 
getResourceURLpublic URL getResourceURL(ResourceMeta resourceMeta) Description copied from class:ResourceLoaderReturn the max available version found (if exists) or return null if no version available.- Specified by:
- getResourceURLin class- ResourceLoader
 
 - 
getResourceVersionpublic String getResourceVersion(String path) - Specified by:
- getResourceVersionin class- ResourceLoader
 
 - 
createResourceMetapublic ResourceMeta createResourceMeta(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion) - Specified by:
- createResourceMetain class- ResourceLoader
 
 - 
getClassLoaderprotected ClassLoader getClassLoader() Returns the ClassLoader to use when looking up resources under the top level package. By default, this is the context class loader.- Returns:
- the ClassLoader used to lookup resources
 
 - 
libraryExistspublic boolean libraryExists(String libraryName) - Specified by:
- libraryExistsin class- ResourceLoader
 
 - 
iteratorpublic Iterator<String> iterator(FacesContext facesContext, String path, int maxDepth, ResourceVisitOption... options) - Overrides:
- iteratorin class- ResourceLoader
 
 
- 
 
-