Package org.intocps.maestro.interpreter
Class DefaultExternalValueFactory.JFmi2LifecycleHandler
- java.lang.Object
-
- org.intocps.maestro.interpreter.DefaultExternalValueFactory.BaseLifecycleHandler
-
- org.intocps.maestro.interpreter.DefaultExternalValueFactory.JFmi2LifecycleHandler
-
- All Implemented Interfaces:
IValueLifecycleHandler,IDiscoverableRuntimeMablModule
- Enclosing class:
- DefaultExternalValueFactory
public static class DefaultExternalValueFactory.JFmi2LifecycleHandler extends DefaultExternalValueFactory.BaseLifecycleHandler
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.intocps.maestro.interpreter.api.IValueLifecycleHandler
IValueLifecycleHandler.ValueLifecycle
-
-
Constructor Summary
Constructors Constructor Description JFmi2LifecycleHandler(File workingDirectory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy(Value value)Destruction of the initially created value.com.spencerwi.either.Either<Exception,Value>instantiate(List<Value> args)Creates an instance of the module based on the given arguments-
Methods inherited from class org.intocps.maestro.interpreter.DefaultExternalValueFactory.BaseLifecycleHandler
getMablModule
-
-
-
-
Constructor Detail
-
JFmi2LifecycleHandler
public JFmi2LifecycleHandler(File workingDirectory)
-
-
Method Detail
-
destroy
public void destroy(Value value)
Description copied from interface:IValueLifecycleHandlerDestruction of the initially created value. This serves as a clena up handle- Specified by:
destroyin interfaceIValueLifecycleHandler- Overrides:
destroyin classDefaultExternalValueFactory.BaseLifecycleHandler- Parameters:
value- the value to destroy
-
instantiate
public com.spencerwi.either.Either<Exception,Value> instantiate(List<Value> args)
Description copied from interface:IValueLifecycleHandlerCreates an instance of the module based on the given arguments- Parameters:
args- the arguments to be used for the creation- Returns:
- either an exception or the value just created
-
-