Interface IApplicationProvisionDelegate
-
public interface IApplicationProvisionDelegate
The application provision 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 List<IApplication>
getApplications(org.eclipse.core.resources.IProject project, IApplicationType type)
Returns a list of all registered project applications.LifecycleState
getLifecycleState(ILifecycleAware object)
Returns the application lifecycle state for the provided application or lifecycle aware artifact.PublishState
getPublishState(IApplication application)
Returns the application publish state for the provided application.void
initialize(IApplicationProvisionNotifier notifier, IApplicationAttributeRepository attributeRepository, IApplicationType type)
Initializes the application provision delegate with the registered application type and provision notifier.
-
-
-
Method Detail
-
initialize
void initialize(IApplicationProvisionNotifier notifier, IApplicationAttributeRepository attributeRepository, IApplicationType type) throws ApplicationException
Initializes the application provision delegate with the registered application type and provision notifier.- Parameters:
notifier
- the application provision notifier, cannot benull
attributeRepository
- the application attribute repository to use if needed, cannot benull
type
- the application type, cannot benull
- Throws:
ApplicationException
- if method call failed with some reason
-
getApplications
List<IApplication> getApplications(org.eclipse.core.resources.IProject project, IApplicationType type) throws ApplicationException
Returns a list of all registered project applications.- Parameters:
project
- the project to get applications for, cannot benull
- Returns:
- a list of all registered project applications, never
null
- Throws:
ApplicationException
- if method call failed with some reason
-
getLifecycleState
LifecycleState getLifecycleState(ILifecycleAware object) throws ApplicationException
Returns the application lifecycle state for the provided application or lifecycle aware artifact. May be unkown.- Parameters:
object
- the object to get state for, cannot benull
- Returns:
- the application lifecycle state, never
null
- Throws:
ApplicationException
- if method call failed with some reason
-
getPublishState
PublishState getPublishState(IApplication application) throws ApplicationException
Returns the application publish state for the provided application. May be unkown.- Parameters:
application
- the application to get state for, cannot benull
- Returns:
- the application publish state, never
null
- Throws:
ApplicationException
- if method call failed with some reason
-
-