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
ResourceLoaders that are able to handle contract aware resources
 must extends from this class.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.apache.myfaces.resource.ResourceLoaderResourceLoader.VersionComparator
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncreateResourceMeta(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion) abstract ResourceMetacreateResourceMeta(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion, String contractName) getLibraryVersion(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.getResourceVersion(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 Details- 
VERSION_INVALID- See Also:
 
 
- 
- 
Constructor Details- 
ContractResourceLoader
 
- 
- 
Method Details- 
getResourceVersion- Specified by:
- getResourceVersionin class- ResourceLoader
 
- 
getLibraryVersionDescription copied from class:ResourceLoaderReturn the max available version found (if exists) or return null if no version available.- Specified by:
- getLibraryVersionin class- ResourceLoader
 
- 
getResourceVersion
- 
getLibraryVersionReturn 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
 
- 
libraryExists- Specified by:
- libraryExistsin class- ResourceLoader
 
- 
libraryExists
 
-