|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IRuntimeFactory
Defines a factory API to create the following essential runtime objects:
getRuntimeId()).
If no runtime id specified module uses default runtime factory.
Module can use custom runtime implementation.
In order for the module to recognize the custom runtime
it needs to be placed in a jar file and registered
using the jar service provider discovery mechanism.
The jar file should have a resource file
META-INF/services/com.bareflow.IRuntimeFactory
containing the name of the concrete runtime factory class to instantiate.
IRuntime,
IRuntimeContext,
IRuntimeValue,
IExpression,
IScript| Method Summary | |
|---|---|
IRuntimeContext |
createContext()
Creates root runtime context that can be used by this runtime to run module. |
IExpression |
createExpression(java.lang.String expr)
Creates an expression object from the source code |
IRuntime |
createRuntime()
Creates a runtime instance |
IScript |
createScript(java.lang.String code)
Creates a script object from the source code |
IRuntimeValue |
createValue(java.lang.String value)
Creates a runtime value from its lexical representation |
java.lang.String |
getRuntimeId()
Returns a unique identifier for the runtime represented by this runtime factory. |
| Method Detail |
|---|
java.lang.String getRuntimeId()
IRuntime createRuntime()
throws BareflowException
BareflowException - if a runtime instance cannot be createdIRuntime
IRuntimeContext createContext()
throws BareflowException
BareflowExceptionIRuntimeContext
IRuntimeValue createValue(java.lang.String value)
throws BareflowException
value - lexical representation of the runtime value
BareflowException - if runtime value cannot be createdIRuntimeValue
IScript createScript(java.lang.String code)
throws BareflowException
code - script source code
BareflowException - if script cannot be created
IExpression createExpression(java.lang.String expr)
throws BareflowException
expr - expression source code
BareflowException - if expression cannot be created
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||