org.ow2.bonita.facade.def.element.impl
Class BusinessArchiveImpl

java.lang.Object
  extended by org.ow2.bonita.facade.def.element.impl.BusinessArchiveImpl
All Implemented Interfaces:
java.io.Serializable, BusinessArchive

public class BusinessArchiveImpl
extends java.lang.Object
implements java.io.Serializable, BusinessArchive

This class implements a deployment object. This object can be provided to one of the method of the ManagementAPI method to allow the deployment of a XPDL file and optionnally its depending java classes for hooks, performer assignments, mappers...

Author:
Marc Blachon, Guillaume Porcher, Charles Souillard, Miguel Valdes, Pierre Vigneras
See Also:
Serialized Form

Field Summary
protected  java.util.Map<java.lang.String,byte[]> resources
           
 
Constructor Summary
protected BusinessArchiveImpl()
           
  BusinessArchiveImpl(BusinessArchive businessArchive)
           
  BusinessArchiveImpl(java.util.Map<java.lang.String,byte[]> resources)
           
 
Method Summary
 void addResource(java.lang.String resourcePath, byte[] resourceData)
           
 java.util.Map<java.lang.String,byte[]> getClasses()
           
 java.util.Map<java.lang.String,byte[]> getJarFiles()
           
 byte[] getProcessFile()
           
 byte[] getResource(java.lang.String resourcePath)
           
 java.util.Map<java.lang.String,byte[]> getResources()
           
 java.util.Map<java.lang.String,byte[]> getResources(java.lang.String regex)
           
 boolean isProcessFile()
           
 boolean isXpdlFile()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resources

protected java.util.Map<java.lang.String,byte[]> resources
Constructor Detail

BusinessArchiveImpl

protected BusinessArchiveImpl()

BusinessArchiveImpl

public BusinessArchiveImpl(java.util.Map<java.lang.String,byte[]> resources)
                    throws java.io.IOException
Throws:
java.io.IOException

BusinessArchiveImpl

public BusinessArchiveImpl(BusinessArchive businessArchive)
Method Detail

isProcessFile

public boolean isProcessFile()
Specified by:
isProcessFile in interface BusinessArchive

isXpdlFile

public boolean isXpdlFile()
Specified by:
isXpdlFile in interface BusinessArchive

getProcessFile

public byte[] getProcessFile()
Specified by:
getProcessFile in interface BusinessArchive

getClasses

public java.util.Map<java.lang.String,byte[]> getClasses()
Specified by:
getClasses in interface BusinessArchive

getJarFiles

public java.util.Map<java.lang.String,byte[]> getJarFiles()
Specified by:
getJarFiles in interface BusinessArchive

getResource

public byte[] getResource(java.lang.String resourcePath)
Specified by:
getResource in interface BusinessArchive

getResources

public java.util.Map<java.lang.String,byte[]> getResources(java.lang.String regex)
Specified by:
getResources in interface BusinessArchive

addResource

public void addResource(java.lang.String resourcePath,
                        byte[] resourceData)
Specified by:
addResource in interface BusinessArchive

getResources

public java.util.Map<java.lang.String,byte[]> getResources()
Specified by:
getResources in interface BusinessArchive


Copyright © 2009 OW2 Consortium. All Rights Reserved.