Class ApplicationEvent
java.lang.Object
com.e1c.g5.dt.internal.applications.ApplicationEvent
- All Implemented Interfaces:
IApplicationEvent
The default implementation of
IApplicationEvent.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.e1c.g5.dt.applications.IApplicationEvent
IApplicationEvent.ApplicationEventType -
Constructor Summary
ConstructorsConstructorDescriptionApplicationEvent(IApplication application) Creates instance indicating that the application has became or stopped to be default application.ApplicationEvent(IApplication application, ApplicationUpdateState updateState) Creates event indicating change of update state.ApplicationEvent(IApplication application, LifecycleState lifecycleState) Creates event indicating change of life-cycle state.ApplicationEvent(IApplication application, LifecycleState lifecycleState, IApplicationArtifact applicationArtifact) Creates event indicating change of life-cycle state of the specified artifact -
Method Summary
Modifier and TypeMethodDescriptionReturns the application the event occurred with.Returns the context application artifact the event occurred with.Gets type of the change.Returns the current application lifecycle state.Gets new update state of the application.toString()
-
Constructor Details
-
ApplicationEvent
public ApplicationEvent(IApplication application, LifecycleState lifecycleState, IApplicationArtifact applicationArtifact) Creates event indicating change of life-cycle state of the specified artifact- Parameters:
application- Application which state has changed. Must not be null.lifecycleState- New life-cycle state of the application. Must not be null.applicationArtifact- Artifact whose state has changed. Must not be null.
-
ApplicationEvent
Creates event indicating change of life-cycle state.- Parameters:
application- Application which state has changed. Must not be null.lifecycleState- New life-cycle state of the application. Must not be null.
-
ApplicationEvent
Creates event indicating change of update state.- Parameters:
application- Application which state has changed. Must not be null.updateState- New update state of the application. Must not be null.
-
ApplicationEvent
Creates instance indicating that the application has became or stopped to be default application.- Parameters:
application- Application that is now or not anymore default application. Must not benull.
-
-
Method Details
-
getApplication
Description copied from interface:IApplicationEventReturns the application the event occurred with.- Specified by:
getApplicationin interfaceIApplicationEvent- Returns:
- the application the event occurred with, never
null
-
getContextArtifact
Description copied from interface:IApplicationEventReturns the context application artifact the event occurred with. Empty if event occurent with application itself.- Specified by:
getContextArtifactin interfaceIApplicationEvent- Returns:
- the optional context application artifact the event occurred with
-
getEventType
Description copied from interface:IApplicationEventGets type of the change.- Specified by:
getEventTypein interfaceIApplicationEvent- Returns:
- Type of change. Never null.
-
getLifecycleState
Description copied from interface:IApplicationEventReturns the current application lifecycle state. May be unknown.- Specified by:
getLifecycleStatein interfaceIApplicationEvent- Returns:
- the current application lifecycle state, never
null
-
getUpdateState
Description copied from interface:IApplicationEventGets new update state of the application. This makes sense forIApplicationEvent.ApplicationEventType.UPDATE_STATE_CHANGED.- Specified by:
getUpdateStatein interfaceIApplicationEvent- Returns:
- New state of application. Never null.
-
toString
-