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 SummaryNested classes/interfaces inherited from class org.apache.myfaces.resource.ResourceLoaderResourceLoader.VersionComparator
- 
Field SummaryFields inherited from class org.apache.myfaces.resource.ContractResourceLoaderVERSION_INVALID
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.ContractResourceLoadercreateResourceMeta, getLibraryVersion, getResourceVersion, libraryExistsMethods inherited from class org.apache.myfaces.resource.ResourceLoadergetPrefix, getVersionComparator, resourceExists, setPrefix, setVersionComparator
- 
Constructor Details- 
ClassLoaderContractResourceLoader
 
- 
- 
Method Details- 
getLibraryVersionDescription copied from class:ContractResourceLoaderReturn the max available version found (if exists) or return null if no version available.- Specified by:
- getLibraryVersionin class- ContractResourceLoader
 
- 
getResourceInputStream- Specified by:
- getResourceInputStreamin class- ResourceLoader
 
- 
getResourceURLDescription copied from class:ResourceLoaderReturn the max available version found (if exists) or return null if no version available.- Specified by:
- getResourceURLin class- ResourceLoader
 
- 
getResourceVersion- Specified by:
- getResourceVersionin class- ContractResourceLoader
 
- 
createResourceMetapublic ResourceMeta createResourceMeta(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion, String contractName) - Specified by:
- createResourceMetain class- ContractResourceLoader
 
- 
getClassLoaderReturns 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 class- ContractResourceLoader
 
- 
iteratorpublic Iterator<String> iterator(FacesContext facesContext, String path, int maxDepth, ResourceVisitOption... options) - Overrides:
- iteratorin class- ResourceLoader
 
 
-