|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.bonita.facade.impl.DeployerAPIImpl
public class DeployerAPIImpl
Constructor Summary | |
---|---|
DeployerAPIImpl()
|
Method Summary | |
---|---|
org.ow2.bonita.deployment.PackageKey |
deploy(org.ow2.bonita.deployment.Deployment deployment)
To deploy the package giving the deployment object. |
org.ow2.bonita.deployment.PackageKey |
deployBar(byte[] barFile)
To deploy the package giving the bytes table of the bar file. |
org.ow2.bonita.deployment.PackageKey |
deployBar(java.io.File barFile)
To deploy the package giving the file of the bar file. |
org.ow2.bonita.deployment.PackageKey |
deployBar(java.io.InputStream barFileInputStream)
To deploy the package giving the input stream of the bar file. |
org.ow2.bonita.deployment.PackageKey |
deployBar(java.net.URL barFile)
To deploy the package giving the URL of the bar file. |
void |
deployClass(java.lang.String className,
byte[] clazz)
To deploy a class giving its bytes table. |
void |
deployClasses(java.util.Map<java.lang.String,byte[]> classes)
To deploy several classes giving a map of classes. |
void |
deployClassesInJar(byte[] classesArchive)
To deploy several classes giving an archive containing the classes. |
void |
removeClass(java.lang.String className)
To remove a class giving the class name. |
void |
removeClasses(java.lang.String... classNames)
To remove classes giving the class names. |
void |
undeploy(java.lang.String packageId)
To undeploy a package. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DeployerAPIImpl()
Method Detail |
---|
public org.ow2.bonita.deployment.PackageKey deploy(org.ow2.bonita.deployment.Deployment deployment)
DeployerAPI
deploy
in interface DeployerAPI
deployment
- the deployment object that should contain the xpdl file and the map of required.
public org.ow2.bonita.deployment.PackageKey deployBar(java.io.InputStream barFileInputStream) throws DeploymentException
DeployerAPI
deployBar
in interface DeployerAPI
barFileInputStream
- the input stream of the bar file.
DeploymentException
- if an IO exception is thrown.public org.ow2.bonita.deployment.PackageKey deployBar(java.net.URL barFile) throws DeploymentException
DeployerAPI
deployBar
in interface DeployerAPI
barFile
- the URL of the bar file.
DeploymentException
- if an IO exception is thrown.public org.ow2.bonita.deployment.PackageKey deployBar(java.io.File barFile) throws DeploymentException
DeployerAPI
deployBar
in interface DeployerAPI
barFile
- the file of the barfile.
DeploymentException
- if the archive file is not found.public org.ow2.bonita.deployment.PackageKey deployBar(byte[] barFile) throws DeploymentException
DeployerAPI
deployBar
in interface DeployerAPI
barFile
- the bytes table of the bar file.
DeploymentException
- if either the xpdl file does not exist or is not unique or a malformed URL has occurred.public void deployClass(java.lang.String className, byte[] clazz) throws DeploymentException
DeployerAPI
deployClass
in interface DeployerAPI
className
- the name of the class.clazz
- the bytes table of the class.
DeploymentException
- if there is already a deployed class with this name.public void deployClassesInJar(byte[] classesArchive) throws DeploymentException
DeployerAPI
deployClassesInJar
in interface DeployerAPI
classesArchive
- the archives containing the classes.
DeploymentException
- if there is already a deployed class with this name or there's an IOException occurs.public void deployClasses(java.util.Map<java.lang.String,byte[]> classes) throws DeploymentException
DeployerAPI
deployClasses
in interface DeployerAPI
classes
- a map of key-value where key is the name of the class and value is the bytes table.
DeploymentException
- if there is already a deployed class with the namepublic void undeploy(java.lang.String packageId)
DeployerAPI
undeploy
in interface DeployerAPI
packageId
- the package id.public void removeClass(java.lang.String className) throws DeploymentException
DeployerAPI
removeClass
in interface DeployerAPI
className
- the name of the class.
DeploymentException
- if there's no class defined in global class repository with this name
or a package is still using global class.public void removeClasses(java.lang.String... classNames) throws DeploymentException
DeployerAPI
removeClasses
in interface DeployerAPI
classNames
- the class names.
DeploymentException
- if there's no class defined in global class repository with this name
or a package is still using global class.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |