org.apache.myfaces.resource
Class InternalClassLoaderResourceLoader
java.lang.Object
org.apache.myfaces.shared_impl.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 java.lang.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 jsf.js more simple. |
Method Summary |
ResourceMeta |
createResourceMeta(java.lang.String prefix,
java.lang.String libraryName,
java.lang.String libraryVersion,
java.lang.String resourceName,
java.lang.String resourceVersion)
|
protected java.lang.ClassLoader |
getClassLoader()
Returns the ClassLoader to use when looking up resources under the top level package. |
java.lang.String |
getLibraryVersion(java.lang.String path)
Return the max available version found (if exists) or
return null if no version available. |
java.io.InputStream |
getResourceInputStream(ResourceMeta resourceMeta)
|
java.net.URL |
getResourceURL(ResourceMeta resourceMeta)
Return the max available version found (if exists) or
return null if no version available. |
java.lang.String |
getResourceVersion(java.lang.String path)
|
boolean |
libraryExists(java.lang.String libraryName)
|
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")
public static final java.lang.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 jsf.js more simple.
- See Also:
- Constant Field Values
InternalClassLoaderResourceLoader
public InternalClassLoaderResourceLoader(java.lang.String prefix)
getLibraryVersion
public java.lang.String getLibraryVersion(java.lang.String path)
- Description copied from class:
ResourceLoader
- Return the max available version found (if exists) or
return null if no version available.
- Specified by:
getLibraryVersion
in class ResourceLoader
getResourceInputStream
public java.io.InputStream getResourceInputStream(ResourceMeta resourceMeta)
- Specified by:
getResourceInputStream
in class ResourceLoader
getResourceURL
public java.net.URL getResourceURL(ResourceMeta resourceMeta)
- Description copied from class:
ResourceLoader
- Return the max available version found (if exists) or
return null if no version available.
- Specified by:
getResourceURL
in class ResourceLoader
getResourceVersion
public java.lang.String getResourceVersion(java.lang.String path)
- Specified by:
getResourceVersion
in class ResourceLoader
createResourceMeta
public ResourceMeta createResourceMeta(java.lang.String prefix,
java.lang.String libraryName,
java.lang.String libraryVersion,
java.lang.String resourceName,
java.lang.String resourceVersion)
- Specified by:
createResourceMeta
in class ResourceLoader
getClassLoader
protected java.lang.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(java.lang.String libraryName)
- Specified by:
libraryExists
in class ResourceLoader
Copyright © 2010 The Apache Software Foundation. All Rights Reserved.