public class InternalClassLoaderResourceLoader extends ResourceLoader
ResourceLoader.VersionComparator
Modifier and Type | Field and Description |
---|---|
static String |
MYFACES_JSF_MODE
Define the mode used for jsf.js file:
normal : contains everything, including i18n (jsf-i18n.js)
minimal: contains everything, excluding i18n (jsf-i18n.js)
|
static String |
USE_MULTIPLE_JS_FILES_FOR_JSF_UNCOMPRESSED_JS
If 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.
|
VERSION_INVALID
Constructor and Description |
---|
InternalClassLoaderResourceLoader(String prefix) |
Modifier and Type | Method and Description |
---|---|
ResourceMeta |
createResourceMeta(String prefix,
String libraryName,
String libraryVersion,
String resourceName,
String resourceVersion) |
protected ClassLoader |
getClassLoader()
Returns the ClassLoader to use when looking up resources under the top level package.
|
String |
getLibraryVersion(String path)
Return the max available version found (if exists) or
return null if no version available.
|
InputStream |
getResourceInputStream(ResourceMeta resourceMeta) |
URL |
getResourceURL(ResourceMeta resourceMeta)
Return the max available version found (if exists) or
return null if no version available.
|
URL |
getResourceURL(String resourceId) |
String |
getResourceVersion(String path) |
Iterator<String> |
iterator(FacesContext facesContext,
String path,
int maxDepth,
ResourceVisitOption... options) |
boolean |
libraryExists(String libraryName) |
createResourceMeta, getPrefix, getVersionComparator, resourceExists, setPrefix, setVersionComparator
@JSFWebConfigParam(since="2.0.1", defaultValue="false", expectedValues="true,false", group="render") public static final String USE_MULTIPLE_JS_FILES_FOR_JSF_UNCOMPRESSED_JS
@JSFWebConfigParam(since="2.0.10,2.1.4", defaultValue="normal", expectedValues="normal, minimal-modern, minimal", group="render") public static final String MYFACES_JSF_MODE
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.
public InternalClassLoaderResourceLoader(String prefix)
public String getLibraryVersion(String path)
ResourceLoader
getLibraryVersion
in class ResourceLoader
public InputStream getResourceInputStream(ResourceMeta resourceMeta)
getResourceInputStream
in class ResourceLoader
public URL getResourceURL(ResourceMeta resourceMeta)
ResourceLoader
getResourceURL
in class ResourceLoader
public String getResourceVersion(String path)
getResourceVersion
in class ResourceLoader
public ResourceMeta createResourceMeta(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion)
createResourceMeta
in class ResourceLoader
protected ClassLoader getClassLoader()
public boolean libraryExists(String libraryName)
libraryExists
in class ResourceLoader
public Iterator<String> iterator(FacesContext facesContext, String path, int maxDepth, ResourceVisitOption... options)
iterator
in class ResourceLoader
Copyright © 2021 The Apache Software Foundation. All rights reserved.