org.apache.myfaces.shared.resource
Class ContractResourceLoaderWrapper
java.lang.Object
org.apache.myfaces.shared.resource.ResourceLoader
org.apache.myfaces.shared.resource.ContractResourceLoader
org.apache.myfaces.shared.resource.ContractResourceLoaderWrapper
- All Implemented Interfaces:
- FacesWrapper<ContractResourceLoader>
public abstract class ContractResourceLoaderWrapper
- extends ContractResourceLoader
- implements FacesWrapper<ContractResourceLoader>
Method Summary |
ResourceMeta |
createResourceMeta(String prefix,
String libraryName,
String libraryVersion,
String resourceName,
String resourceVersion)
|
ResourceMeta |
createResourceMeta(String prefix,
String libraryName,
String libraryVersion,
String resourceName,
String resourceVersion,
String contractName)
|
String |
getLibraryVersion(String path)
Return the max available version found (if exists) or
return null if no version available. |
String |
getLibraryVersion(String path,
String contractName)
Return the max available version found (if exists) or
return null if no version available. |
String |
getPrefix()
|
InputStream |
getResourceInputStream(ResourceMeta resourceMeta)
|
URL |
getResourceURL(ResourceMeta resourceMeta)
Return the max available version found (if exists) or
return null if no version available. |
String |
getResourceVersion(String path)
|
String |
getResourceVersion(String path,
String contractName)
|
protected Comparator<String> |
getVersionComparator()
|
boolean |
libraryExists(String libraryName)
|
boolean |
libraryExists(String libraryName,
String contractName)
|
boolean |
resourceExists(ResourceMeta resourceMeta)
|
void |
setPrefix(String prefix)
|
protected void |
setVersionComparator(Comparator<String> versionComparator)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContractResourceLoaderWrapper
public ContractResourceLoaderWrapper()
getResourceVersion
public String getResourceVersion(String path,
String contractName)
- Specified by:
getResourceVersion
in class ContractResourceLoader
getLibraryVersion
public String getLibraryVersion(String path,
String contractName)
- Description copied from class:
ContractResourceLoader
- Return the max available version found (if exists) or
return null if no version available.
- Specified by:
getLibraryVersion
in class ContractResourceLoader
createResourceMeta
public ResourceMeta createResourceMeta(String prefix,
String libraryName,
String libraryVersion,
String resourceName,
String resourceVersion,
String contractName)
- Specified by:
createResourceMeta
in class ContractResourceLoader
libraryExists
public boolean libraryExists(String libraryName,
String contractName)
- Specified by:
libraryExists
in class ContractResourceLoader
getResourceURL
public URL getResourceURL(ResourceMeta resourceMeta)
- Description copied from class:
ResourceLoader
- Return the max available version found (if exists) or
return null if no version available.
- Specified by:
getResourceURL
in class ResourceLoader
getResourceInputStream
public InputStream getResourceInputStream(ResourceMeta resourceMeta)
- Specified by:
getResourceInputStream
in class ResourceLoader
libraryExists
public boolean libraryExists(String libraryName)
- Overrides:
libraryExists
in class ContractResourceLoader
createResourceMeta
public ResourceMeta createResourceMeta(String prefix,
String libraryName,
String libraryVersion,
String resourceName,
String resourceVersion)
- Overrides:
createResourceMeta
in class ContractResourceLoader
getLibraryVersion
public String getLibraryVersion(String path)
- Description copied from class:
ResourceLoader
- Return the max available version found (if exists) or
return null if no version available.
- Overrides:
getLibraryVersion
in class ContractResourceLoader
getResourceVersion
public String getResourceVersion(String path)
- Overrides:
getResourceVersion
in class ContractResourceLoader
setPrefix
public void setPrefix(String prefix)
- Overrides:
setPrefix
in class ResourceLoader
getPrefix
public String getPrefix()
- Overrides:
getPrefix
in class ResourceLoader
setVersionComparator
protected void setVersionComparator(Comparator<String> versionComparator)
- Overrides:
setVersionComparator
in class ResourceLoader
getVersionComparator
protected Comparator<String> getVersionComparator()
- Overrides:
getVersionComparator
in class ResourceLoader
resourceExists
public boolean resourceExists(ResourceMeta resourceMeta)
- Overrides:
resourceExists
in class ResourceLoader
Copyright © 2014 The Apache Software Foundation. All rights reserved.