org.apache.myfaces.resource
Class InternalClassLoaderResourceLoader
java.lang.Object
org.apache.myfaces.shared.resource.ResourceLoader
org.apache.myfaces.resource.InternalClassLoaderResourceLoader
public class InternalClassLoaderResourceLoader
- extends ResourceLoader
A resource loader implementation which loads resources from the thread ClassLoader.
Field Summary |
static String |
MYFACES_JSF_MODE
Define the mode used for jsf.js file:
normal : contains everything, including jsf-i18n.js, jsf-experimental.js and jsf-legacy.js
minimal-modern : is the core jsf with a baseline of ie9+, without jsf-i18n.js, jsf-experimental.js and jsf-legacy.js
minimal: which is the same with a baseline of ie6, without jsf-i18n.js, jsf-experimental.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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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_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.
- 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_MODE
- Define the mode used for jsf.js file:
- normal : contains everything, including jsf-i18n.js, jsf-experimental.js and jsf-legacy.js
- minimal-modern : is the core jsf with a baseline of ie9+, without jsf-i18n.js, jsf-experimental.js and jsf-legacy.js
- minimal: which is the same with a baseline of ie6, without jsf-i18n.js, jsf-experimental.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
InternalClassLoaderResourceLoader
public InternalClassLoaderResourceLoader(String prefix)
getLibraryVersion
public String getLibraryVersion(String path)
- Specified by:
getLibraryVersion
in class ResourceLoader
getResourceInputStream
public InputStream getResourceInputStream(ResourceMeta resourceMeta)
- Specified by:
getResourceInputStream
in class ResourceLoader
getResourceURL
public URL getResourceURL(ResourceMeta resourceMeta)
- Specified by:
getResourceURL
in class ResourceLoader
getResourceVersion
public String getResourceVersion(String path)
- Specified by:
getResourceVersion
in class ResourceLoader
createResourceMeta
public ResourceMeta createResourceMeta(String prefix,
String libraryName,
String libraryVersion,
String resourceName,
String resourceVersion)
- Specified by:
createResourceMeta
in class ResourceLoader
getClassLoader
protected 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
libraryExists
public boolean libraryExists(String libraryName)
- Specified by:
libraryExists
in class ResourceLoader
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.