public class BpelC
extends java.lang.Object
Wrapper for BpelCompiler
implementations,
providing basic utility methods and auto-detection of BPEL version.
Modifier and Type | Field and Description |
---|---|
java.io.OutputStream |
_outputStream |
static java.lang.String |
PROCESS_CUSTOM_PROPERTIES |
Modifier and Type | Method and Description |
---|---|
void |
compile(java.io.File bpelFile,
long version)
Compile a BPEL process from a file.
|
void |
compile(Process process,
java.lang.String outputPath,
long version)
Compile a BPEL process from a BOM
Process object. |
protected void |
finalize() |
static BpelC |
newBpelCompiler() |
void |
setBaseDirectory(java.io.File baseDir) |
void |
setCompileListener(CompileListener cl)
Set a non-default target
CompileListener implementation. |
void |
setCompileProperties(java.util.Map<java.lang.String,java.lang.Object> compileProperties)
Compilation properties eventually retrieved by the compiler
|
void |
setDryRun(boolean dryRun)
Configures the compiler to run a dry compilation, doesn't generate the produced
compiled process.
|
void |
setOutputStream(java.io.OutputStream os)
Set the output stream to which the compiled representation will be generated.
|
void |
setProcessWSDL(java.net.URI wsdl)
Register a "global" WSDL import for compilation.
|
void |
setResourceFinder(ResourceFinder finder)
Tell the compiler how to locate WSDL imports for a BPEL process.
|
public static final java.lang.String PROCESS_CUSTOM_PROPERTIES
public java.io.OutputStream _outputStream
public static BpelC newBpelCompiler()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void setCompileListener(CompileListener cl)
Set a non-default target CompileListener
implementation.
cl
- the listener.public void setDryRun(boolean dryRun)
dryRun
- public void setResourceFinder(ResourceFinder finder)
Tell the compiler how to locate WSDL imports for a BPEL process. Setting this
to null
will cause the default behavior.
finder
- the ResourceFinder
implementation to use.public void setProcessWSDL(java.net.URI wsdl)
<import>
BPEL construct.wsdl
- the WSDL URI (resolvable against the resource repository)public void setCompileProperties(java.util.Map<java.lang.String,java.lang.Object> compileProperties)
compileProperties
- public void setOutputStream(java.io.OutputStream os)
os
- compiled representation output streampublic void setBaseDirectory(java.io.File baseDir)
public void compile(Process process, java.lang.String outputPath, long version) throws CompilationException, java.io.IOException
Compile a BPEL process from a BOM Process
object.
process
- the BOM Process
to compile.java.io.IOException
- if one occurs while processing (e.g., getting imports) or writing
output.CompilationException
- if one occurs while compiling.public void compile(java.io.File bpelFile, long version) throws CompilationException, java.io.IOException
Compile a BPEL process from a file. This method uses a BpelObjectFactory
to parse the XML and then calls #compile(Process,String)
.
bpelFile
- the file of the BPEL process to be compiled.java.io.IOException
- if one occurs while reading the BPEL process or writing the
output.CompilationException
- if one occurs while compiling the process.