ReactorClassDelegate

public final class ReactorClassDelegate<T extends EventReceiver> extends EventReceivingClassDelegate<T, P, M> implements ReactingClass

The helper class for holding messaging information on behalf of another model class.

Parameters

<T>

the type of the raw class for obtaining messaging information

Constructors

Link copied to clipboard
public void ReactorClassDelegate(Class<T> cls)

Functions

Link copied to clipboard
public ImmutableSet<EventClass> reactionOutput()
Obtains the classes of events produced from the event reaction.
Link copied to clipboard
public EventReactorMethod reactorOf(EventClass eventClass, MessageClass<?> originClass)
Obtains the method that reacts on the events of the passed class.

Inherited functions

Link copied to clipboard
public boolean contains(EventClass eventClass)
Link copied to clipboard
public ImmutableSet<EventClass> domesticEvents()
Obtains domestic event classes handled by the delegating class.
Link copied to clipboard
public ImmutableSet<StateClass> domesticStates()
Obtains domestic entity states to which the delegating class is subscribed.
Link copied to clipboard
public ImmutableSet<EventClass> events()
Obtains all event classes handled by the delegating class.
Link copied to clipboard
public ImmutableSet<EventClass> externalEvents()
Obtains external event classes handled by the delegating class.
Link copied to clipboard
public ImmutableSet<StateClass> externalStates()
Obtains external entity states to which the delegating class is subscribed.
Link copied to clipboard
protected static ModelClass<T> get<T, M extends ModelClass<T>>(Class<T> rawClass, Class<M> requestedModelClass, Supplier<ModelClass<T>> supplier)
Obtains the model class for the passed raw class.
Link copied to clipboard
public M handlerOf(EventClass eventClass, MessageClass<?> originClass)
Obtains the method which handles the passed event class.
Link copied to clipboard
public ImmutableSet<M> handlersOf(EventClass eventClass, MessageClass<?> originClass)
Obtains the method which handles the passed event class.
Link copied to clipboard
public ImmutableSet<P> producedTypes()
Obtains the classes of messages produced by handler methods of this class.