|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ode.bpel.compiler.BpelC
public class BpelC
Wrapper for BpelCompiler
implementations,
providing basic utility methods and auto-detection of BPEL version.
Field Summary | |
---|---|
java.io.OutputStream |
_outputStream
|
static java.lang.String |
PROCESS_CUSTOM_PROPERTIES
|
Method Summary | |
---|---|
void |
compile(java.io.File bpelFile)
Compile a BPEL process from a file. |
void |
compile(Process process,
java.lang.String outputPath)
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROCESS_CUSTOM_PROPERTIES
public java.io.OutputStream _outputStream
Method Detail |
---|
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) 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) 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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |