Interface OnStartListener<T>
- Type Parameters:
T- the type of the object being managed by the ActiveObjectContext
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents a listener that is called when an object starts.
The OnStartListener interface is a functional interface, meaning it has
exactly one abstract method (onObjectStart). This allows instances of this
interface to be created with lambda expressions or method references.
- Author:
- Sergey Grachev
-
Method Summary
Modifier and TypeMethodDescriptionvoidonObjectStart(Start message, ActiveObjectContext<T> context) Called when an object starts.
-
Method Details
-
onObjectStart
Called when an object starts.This method is invoked with a
Startmessage and the associatedActiveObjectContext. Implementations of this method should contain the logic to be executed when the object starts.- Parameters:
message- aStartmessage indicating that the object has startedcontext- theActiveObjectContextassociated with the starting object
-