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 Summary
Nested classes/interfaces inherited from class org.apache.myfaces.resource.ResourceLoader
ResourceLoader.VersionComparator -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier 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.ResourceLoader
getPrefix, getResourceInputStream, getResourceURL, getVersionComparator, iterator, resourceExists, setPrefix, setVersionComparator
-
Field Details
-
VERSION_INVALID
- See Also:
-
-
Constructor Details
-
ContractResourceLoader
-
-
Method Details
-
getResourceVersion
- Specified by:
getResourceVersionin classResourceLoader
-
getLibraryVersion
Description copied from class:ResourceLoaderReturn the max available version found (if exists) or return null if no version available.- Specified by:
getLibraryVersionin classResourceLoader
-
getResourceVersion
-
getLibraryVersion
Return the max available version found (if exists) or return null if no version available. -
createResourceMeta
public ResourceMeta createResourceMeta(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion) - Specified by:
createResourceMetain classResourceLoader
-
createResourceMeta
public abstract ResourceMeta createResourceMeta(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion, String contractName) - Overrides:
createResourceMetain classResourceLoader
-
libraryExists
- Specified by:
libraryExistsin classResourceLoader
-
libraryExists
-