public interface LibraryManager
Modifier and Type | Method and Description |
---|---|
void |
addResource(String name,
InputStream inputStream)
Parses the library resource represented by
inputStream and if there are no errors, stores it to the
ADAPA store. |
byte[] |
exportResourceFile(String name)
Returns the library resource file with
name as a byte[]. |
ClassLoader |
getResourceClassLoader(Class<?> resourceType)
Get the
ClassLoader that loads all the resources of type resourceType . |
Set<ResourceInformation> |
listResources()
Lists the
ResourceInformation available in the ADAPA store. |
void |
removeResource(String name)
Removes the library resource with
name from the underlying ADAPA store. |
void addResource(String name, InputStream inputStream)
inputStream
and if there are no errors, stores it to the
ADAPA store.name
- name of the library resource.inputStream
- the library input stream.void removeResource(String name)
name
from the underlying ADAPA store.name
- the name of the library resource to remove.Set<ResourceInformation> listResources()
ResourceInformation
available in the ADAPA store.Set
of ResourceInformation
.byte[] exportResourceFile(String name)
name
as a byte[].name
- name of the resource.ClassLoader getResourceClassLoader(Class<?> resourceType)
ClassLoader
that loads all the resources of type resourceType
.resourceType
- Class
of the resource.ClassLoader
that loads all the resource of the provided type.Copyright © 2005–2016 Zementis, Inc.. All rights reserved.