Package com.e1c.g5.dt.applications
Interface IApplicationEvent
- All Known Implementing Classes:
ApplicationEvent
public interface IApplicationEvent
Event indicating that application state has changed.
- Restriction:
- This interface is not intended to be extended by clients.
- Restriction:
- This interface is not intended to be implemented by clients.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumIndicates what has changed. -
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.
-
Method Details
-
getApplication
IApplication getApplication()Returns the application the event occurred with.- Returns:
- the application the event occurred with, never
null
-
getContextArtifact
Optional<IApplicationArtifact> getContextArtifact()Returns the context application artifact the event occurred with. Empty if event occurent with application itself.- Returns:
- the optional context application artifact the event occurred with
-
getEventType
IApplicationEvent.ApplicationEventType getEventType()Gets type of the change.- Returns:
- Type of change. Never null.
-
getLifecycleState
LifecycleState getLifecycleState()Returns the current application lifecycle state. May be unknown.- Returns:
- the current application lifecycle state, never
null
-
getUpdateState
ApplicationUpdateState getUpdateState()Gets new update state of the application. This makes sense forIApplicationEvent.ApplicationEventType.UPDATE_STATE_CHANGED.- Returns:
- New state of application. Never null.
-