org.ow2.orchestra.util
Class ProcessResourcesRepository

java.lang.Object
  extended by 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.
 
Constructor Summary
ProcessResourcesRepository()
           
 
Method Summary
 void addResource(URL url, String resourceName)
          Add a new process resource.
 Map<String,byte[]> getResources()
           
 ClassLoader getResourcesClassLoader(ClassLoader parentClassLoader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

Constructor Detail

ProcessResourcesRepository

public ProcessResourcesRepository()
Method Detail

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 resource
resourceName - name of the resource

getResourcesClassLoader

public ClassLoader getResourcesClassLoader(ClassLoader parentClassLoader)


Copyright © 2011 OW2 Consortium. All Rights Reserved.