Package org.apache.myfaces.resource
Class ContractResourceLoader
- java.lang.Object
- 
- org.apache.myfaces.resource.ResourceLoader
- 
- org.apache.myfaces.resource.ContractResourceLoader
 
 
- 
- Direct Known Subclasses:
- ClassLoaderContractResourceLoader,- ContractResourceLoaderWrapper,- ExternalContextContractResourceLoader
 
 public abstract class ContractResourceLoader extends ResourceLoader ResourceLoaders that are able to handle contract aware resources must extends from this class.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.apache.myfaces.resource.ResourceLoaderResourceLoader.VersionComparator
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static StringVERSION_INVALID
 - 
Constructor SummaryConstructors Constructor Description ContractResourceLoader(String prefix)
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ResourceMetacreateResourceMeta(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion)abstract ResourceMetacreateResourceMeta(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion, String contractName)StringgetLibraryVersion(String path)Return the max available version found (if exists) or return null if no version available.abstract StringgetLibraryVersion(String path, String contractName)Return the max available version found (if exists) or return null if no version available.StringgetResourceVersion(String path)abstract StringgetResourceVersion(String path, String contractName)booleanlibraryExists(String libraryName)abstract booleanlibraryExists(String libraryName, String contractName)- 
Methods inherited from class org.apache.myfaces.resource.ResourceLoadergetPrefix, getResourceInputStream, getResourceURL, getVersionComparator, iterator, resourceExists, setPrefix, setVersionComparator
 
- 
 
- 
- 
- 
Field Detail- 
VERSION_INVALIDpublic static final String VERSION_INVALID - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
ContractResourceLoaderpublic ContractResourceLoader(String prefix) 
 
- 
 - 
Method Detail- 
getResourceVersionpublic String getResourceVersion(String path) - Specified by:
- getResourceVersionin class- ResourceLoader
 
 - 
getLibraryVersionpublic String getLibraryVersion(String path) Description copied from class:ResourceLoaderReturn the max available version found (if exists) or return null if no version available.- Specified by:
- getLibraryVersionin class- ResourceLoader
 
 - 
getLibraryVersionpublic abstract String getLibraryVersion(String path, String contractName) Return the max available version found (if exists) or return null if no version available.
 - 
createResourceMetapublic ResourceMeta createResourceMeta(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion) - Specified by:
- createResourceMetain class- ResourceLoader
 
 - 
createResourceMetapublic abstract ResourceMeta createResourceMeta(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion, String contractName) - Overrides:
- createResourceMetain class- ResourceLoader
 
 - 
libraryExistspublic boolean libraryExists(String libraryName) - Specified by:
- libraryExistsin class- ResourceLoader
 
 
- 
 
-