Interface IApplicationBehaviourDelegate
-
public interface IApplicationBehaviourDelegate
The application behaviour delegate of the specific type of the application.This interface is intended to be implemented and registered by clients.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
initialize(IApplicationProvisionNotifier notifier, IApplicationType type)
Initializes the application behaviour delegate with the registered application type and provision notifier.ExecutionContext
launch(IApplication application, String launchMode, ExecutionContext context, org.eclipse.core.runtime.SubMonitor monitor)
Publishes the application with the provided publish kind.PublishState
publish(IApplication application, PublishKind kind, ExecutionContext context, org.eclipse.core.runtime.SubMonitor monitor)
Publishes the application with the provided publish kind.
-
-
-
Method Detail
-
initialize
void initialize(IApplicationProvisionNotifier notifier, IApplicationType type) throws ApplicationException
Initializes the application behaviour delegate with the registered application type and provision notifier.- Parameters:
notifier
- the application provision notifier, cannot benull
type
- the application type, cannot benull
- Throws:
ApplicationException
- if method call failed with some reason
-
publish
PublishState publish(IApplication application, PublishKind kind, ExecutionContext context, org.eclipse.core.runtime.SubMonitor monitor) throws ApplicationException
Publishes the application with the provided publish kind.- Parameters:
application
- the application to publish, cannot benull
kind
- the publish kind to use, cannot benull
context
- the execution context, cannot benull
monitor
- the progress monitor to report progress to, cannot benull
- Returns:
- the publication state after execution, never
null
- Throws:
ApplicationException
- if method call failed with some reason
-
launch
ExecutionContext launch(IApplication application, String launchMode, ExecutionContext context, org.eclipse.core.runtime.SubMonitor monitor) throws ApplicationException
Publishes the application with the provided publish kind.- Parameters:
application
- the application to publish, cannot benull
launchMode
- the launch mode to use, cannot benull
context
- the execution context, cannot benull
monitor
- the progress monitor to report progress to, cannot benull
- Returns:
- the execution context after execution, never
null
- Throws:
ApplicationException
- if method call failed with some reason
-
-