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 benull
applicationState
- the new application state, cannot benull
applicationArtifact
- the application context artifact, cannot benull
-
ApplicationEvent
Constructs the event of the application or application artifact lifecycle state change.- Parameters:
application
- the application, cannot benull
applicationState
- the new application state, cannot benull
-
ApplicationEvent
Constructs the event of the application publish state change.- Parameters:
application
- the application, cannot benull
publishState
- 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:IApplicationEvent
Returns the application the event occurred with.- Specified by:
getApplication
in interfaceIApplicationEvent
- Returns:
- the application the event occurred with, never
null
-
getContextArtifact
Description copied from interface:IApplicationEvent
Returns the context application artifact the event occurred with. Empty if event occurent with application itself.- Specified by:
getContextArtifact
in interfaceIApplicationEvent
- Returns:
- the optional context application artifact the event occurred with
-
getKind
Description copied from interface:IApplicationEvent
Returns the kid of the occurred event.- Specified by:
getKind
in interfaceIApplicationEvent
- Returns:
- the kid of the occurred event, never
null
- See Also:
-
getLifecycleState
Description copied from interface:IApplicationEvent
Returns the current application lifecycle state. May be unknown.- Specified by:
getLifecycleState
in interfaceIApplicationEvent
- Returns:
- the current application lifecycle state, never
null
-
getPublishState
Description copied from interface:IApplicationEvent
Returns the current application publish state. May be unknown.- Specified by:
getPublishState
in interfaceIApplicationEvent
- Returns:
- the current application publish state, never
null
-
toString
-