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
 
 
 
- 
 public class ClassLoaderContractResourceLoader extends ContractResourceLoader - Author:
- Leonardo Uribe
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.apache.myfaces.resource.ResourceLoaderResourceLoader.VersionComparator
 
- 
 - 
Field Summary- 
Fields inherited from class org.apache.myfaces.resource.ContractResourceLoaderVERSION_INVALID
 
- 
 - 
Constructor SummaryConstructors Constructor Description ClassLoaderContractResourceLoader(String prefix)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceMetacreateResourceMeta(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion, String contractName)protected ClassLoadergetClassLoader()Returns the ClassLoader to use when looking up resources under the top level package.StringgetLibraryVersion(String path, String contractName)Return the max available version found (if exists) or return null if no version available.InputStreamgetResourceInputStream(ResourceMeta resourceMeta)URLgetResourceURL(ResourceMeta resourceMeta)Return the max available version found (if exists) or return null if no version available.StringgetResourceVersion(String path, String contractName)Iterator<String>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, libraryExists
 - 
Methods inherited from class org.apache.myfaces.resource.ResourceLoadergetPrefix, getVersionComparator, resourceExists, setPrefix, setVersionComparator
 
- 
 
- 
- 
- 
Constructor Detail- 
ClassLoaderContractResourceLoaderpublic ClassLoaderContractResourceLoader(String prefix) 
 
- 
 - 
Method Detail- 
getLibraryVersionpublic String getLibraryVersion(String path, String contractName) Description copied from class:ContractResourceLoaderReturn the max available version found (if exists) or return null if no version available.- Specified by:
- getLibraryVersionin class- ContractResourceLoader
 
 - 
getResourceInputStreampublic InputStream getResourceInputStream(ResourceMeta resourceMeta) - Specified by:
- getResourceInputStreamin class- ResourceLoader
 
 - 
getResourceURLpublic URL getResourceURL(ResourceMeta resourceMeta) Description copied from class:ResourceLoaderReturn the max available version found (if exists) or return null if no version available.- Specified by:
- getResourceURLin class- ResourceLoader
 
 - 
getResourceVersionpublic String getResourceVersion(String path, String contractName) - 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
 
 - 
getClassLoaderprotected 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
 
 - 
libraryExistspublic boolean libraryExists(String libraryName, String contractName) - Specified by:
- libraryExistsin class- ContractResourceLoader
 
 - 
iteratorpublic Iterator<String> iterator(FacesContext facesContext, String path, int maxDepth, ResourceVisitOption... options) - Overrides:
- iteratorin class- ResourceLoader
 
 
- 
 
-