org.eclipse.stardust.engine.core.spi.extensions.runtime
Interface ApplicationInstance

All Known Subinterfaces:
AsynchronousApplicationInstance, SynchronousApplicationInstance

public interface ApplicationInstance

An ApplicationInstance keeps the runtime state and behaviour of an ApplicationType. Application providers will typically implement the sub interfaces of this interface.

Version:
$Revision$
Author:
rsauer, ubirkemeyer
See Also:
SynchronousApplicationInstance, AsynchronousApplicationInstance

Method Summary
 void bootstrap(ActivityInstance activityInstance)
          Callback allowing for initialization of newly created application instances.
 void cleanup()
          Callback to possibly cleanup resources.
 Object getOutAccessPointValue(String name)
          Callback used by the CARNOT engine when the corresponding activity instance processes it's in data mappings.
 void setInAccessPointValue(String name, Object value)
          Callback used by the CARNOT engine when the corresponding activity instance processes it's in data mappings.
 

Method Detail

bootstrap

void bootstrap(ActivityInstance activityInstance)
Callback allowing for initialization of newly created application instances.

Parameters:
activityInstance - The activity instances the application is executed on behalf of.

setInAccessPointValue

void setInAccessPointValue(String name,
                           Object value)
Callback used by the CARNOT engine when the corresponding activity instance processes it's in data mappings. It sets the result of the data mapping path evaluation to the associated AcessPoint

Parameters:
name - the name of the IN or INOUT access point
value - the value at the access point

getOutAccessPointValue

Object getOutAccessPointValue(String name)
Callback used by the CARNOT engine when the corresponding activity instance processes it's in data mappings. This is needed if there is an application path in the IN data mapping because an OUT access point is needed in that case to set the value on the object gotten from applying the application path to the access point.

Parameters:
name - the name of the OUT or INOUT access point
Returns:
the value at the access point

cleanup

void cleanup()
Callback to possibly cleanup resources. It is assumed that this method will not throw any exception.



Copyright © 2017 Eclipse Stardust. All Rights Reserved.