org.ow2.orchestra.util
Class ProcessResourcesRepository
java.lang.Object
org.ow2.orchestra.util.ProcessResourcesRepository
- All Implemented Interfaces:
- Serializable
public class ProcessResourcesRepository
- extends Object
- implements Serializable
- Author:
- Charles Souillard, Guillaume Porcher
- See Also:
- Serialized Form
Field Summary |
protected Map<String,byte[]> |
resources
Store all the resources used in the process. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
resources
protected Map<String,byte[]> resources
- Store all the resources used in the process.
key: String =>name of the resource
value: byte[] => the resource content
ProcessResourcesRepository
public ProcessResourcesRepository()
getResources
public Map<String,byte[]> getResources()
- Returns:
- the resources
addResource
public void addResource(URL url,
String resourceName)
- Add a new process resource.
- Parameters:
url
- url of the resourceresourceName
- name of the resource
getResourcesClassLoader
public ClassLoader getResourcesClassLoader(ClassLoader parentClassLoader)
Copyright © 2011 OW2 Consortium. All Rights Reserved.