trait Base
object A extends Base //
object B extends Base //
object C extends Base //
class D extents Base //
object Base {
//TODO trait Base object
//TODO akka actor event Base
}
- when using
akka to throw a Event event, I want to inform all objects that inherit the attribute Base that they each perform their own actions on the event.
The desired effect of - now is that the events thrown by
akka are uniformly distributed by the companion objects of Base , and verify that all inheritors of Base are object singletons.