Package org.apache.myfaces.resource
Class ClassLoaderContractResourceLoader
java.lang.Object
org.apache.myfaces.resource.ResourceLoader
org.apache.myfaces.resource.ContractResourceLoader
org.apache.myfaces.resource.ClassLoaderContractResourceLoader
- Author:
- Leonardo Uribe
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.myfaces.resource.ResourceLoader
ResourceLoader.VersionComparator -
Field Summary
Fields inherited from class org.apache.myfaces.resource.ContractResourceLoader
VERSION_INVALID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateResourceMeta(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion, String contractName) protected ClassLoaderReturns the ClassLoader to use when looking up resources under the top level package.getLibraryVersion(String path, String contractName) Return the max available version found (if exists) or return null if no version available.getResourceInputStream(ResourceMeta resourceMeta) getResourceURL(ResourceMeta resourceMeta) Return the max available version found (if exists) or return null if no version available.getResourceVersion(String path, String contractName) iterator(FacesContext facesContext, String path, int maxDepth, ResourceVisitOption... options) booleanlibraryExists(String libraryName, String contractName) Methods inherited from class org.apache.myfaces.resource.ContractResourceLoader
createResourceMeta, getLibraryVersion, getResourceVersion, libraryExistsMethods inherited from class org.apache.myfaces.resource.ResourceLoader
getPrefix, getVersionComparator, resourceExists, setPrefix, setVersionComparator
-
Constructor Details
-
ClassLoaderContractResourceLoader
-
-
Method Details
-
getLibraryVersion
Description copied from class:ContractResourceLoaderReturn the max available version found (if exists) or return null if no version available.- Specified by:
getLibraryVersionin classContractResourceLoader
-
getResourceInputStream
- Specified by:
getResourceInputStreamin classResourceLoader
-
getResourceURL
Description copied from class:ResourceLoaderReturn the max available version found (if exists) or return null if no version available.- Specified by:
getResourceURLin classResourceLoader
-
getResourceVersion
- Specified by:
getResourceVersionin classContractResourceLoader
-
createResourceMeta
public ResourceMeta createResourceMeta(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion, String contractName) - Specified by:
createResourceMetain classContractResourceLoader
-
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
- Specified by:
libraryExistsin classContractResourceLoader
-
iterator
public Iterator<String> iterator(FacesContext facesContext, String path, int maxDepth, ResourceVisitOption... options) - Overrides:
iteratorin classResourceLoader
-