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.Kind -
Constructor Summary
ConstructorsConstructorDescriptionApplicationEvent(IApplication application) Creates instance indicating that the application has became or stopped to be default application.ApplicationEvent(IApplication application, LifecycleState applicationState) Constructs the event of the application or application artifact lifecycle state change.ApplicationEvent(IApplication application, LifecycleState applicationState, IApplicationArtifact applicationArtifact) Constructs the event of the application or application artifact lifecycle state change.ApplicationEvent(IApplication application, PublishState publishState) Constructs the event of the application publish state change. -
Method Summary
Modifier and TypeMethodDescriptionReturns the application the event occurred with.Returns the context application artifact the event occurred with.getKind()Returns the kid of the occurred event.Returns the current application lifecycle state.Returns the current application publish state.toString()
-
Constructor Details
-
ApplicationEvent
public ApplicationEvent(IApplication application, LifecycleState applicationState, IApplicationArtifact applicationArtifact) Constructs the event of the application or application artifact lifecycle state change.- Parameters:
application- the application, cannot benullapplicationState- the new application state, cannot benullapplicationArtifact- the application context artifact, cannot benull
-
ApplicationEvent
Constructs the event of the application or application artifact lifecycle state change.- Parameters:
application- the application, cannot benullapplicationState- the new application state, cannot benull
-
ApplicationEvent
Constructs the event of the application publish state change.- Parameters:
application- the application, cannot benullpublishState- the new publish state, cannot benull
-
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
-
getKind
Description copied from interface:IApplicationEventReturns the kid of the occurred event.- Specified by:
getKindin interfaceIApplicationEvent- Returns:
- the kid of the occurred event, never
null - See Also:
-
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
-
getPublishState
Description copied from interface:IApplicationEventReturns the current application publish state. May be unknown.- Specified by:
getPublishStatein interfaceIApplicationEvent- Returns:
- the current application publish state, never
null
-
toString
-