public class ClassLoaderContractResourceLoader extends ContractResourceLoader
ResourceLoader.VersionComparatorVERSION_INVALID| Constructor and Description |
|---|
ClassLoaderContractResourceLoader(String prefix) |
| Modifier and Type | Method and Description |
|---|---|
ResourceMeta |
createResourceMeta(String prefix,
String libraryName,
String libraryVersion,
String resourceName,
String resourceVersion,
String contractName) |
protected ClassLoader |
getClassLoader()
Returns the ClassLoader to use when looking up resources under the top level package.
|
String |
getLibraryVersion(String path,
String contractName) |
InputStream |
getResourceInputStream(ResourceMeta resourceMeta) |
URL |
getResourceURL(ResourceMeta resourceMeta) |
String |
getResourceVersion(String path,
String contractName) |
boolean |
libraryExists(String libraryName,
String contractName) |
createResourceMeta, getLibraryVersion, getResourceVersion, libraryExistsgetPrefix, getVersionComparator, resourceExists, setPrefix, setVersionComparatorpublic ClassLoaderContractResourceLoader(String prefix)
public String getLibraryVersion(String path, String contractName)
getLibraryVersion in class ContractResourceLoaderpublic InputStream getResourceInputStream(ResourceMeta resourceMeta)
getResourceInputStream in class ResourceLoaderpublic URL getResourceURL(ResourceMeta resourceMeta)
getResourceURL in class ResourceLoaderpublic String getResourceVersion(String path, String contractName)
getResourceVersion in class ContractResourceLoaderpublic ResourceMeta createResourceMeta(String prefix, String libraryName, String libraryVersion, String resourceName, String resourceVersion, String contractName)
createResourceMeta in class ContractResourceLoaderprotected ClassLoader getClassLoader()
public boolean libraryExists(String libraryName, String contractName)
libraryExists in class ContractResourceLoaderCopyright © 2021 The Apache Software Foundation. All rights reserved.