Java API
interface

EventSignalSource

me.tamkungz.signals.velocity.event.EventSignalSource

Version
0.2.1-SNAPSHOT
Java
21
Source file
me/tamkungz/signals/velocity/event/EventSignalSource.java
Repository
View source ↗

Supplies the {@link Signal} that carries a Velocity event for a given post order.

<p>

The fluent {@link EventSignalBuilder} and the per-domain accessors depend on this interface only, which keeps

them free of {@code VelocitySignals} itself.

public interface EventSignalSource

Methods 3

signal

<T> Signal<T> signal(Class<T> eventType, PostOrder order)

Returns the signal for an event type with the given post order.

@param
eventType Velocity event type
@param
order order in which the underlying Velocity handler runs relative to other handlers
@param
<T> event type
@return
the signal for that combination

signal

default <T> Signal<T> signal(Class<T> eventType)

Returns the signal for an event type at {@link PostOrder#NORMAL}.

@param
eventType Velocity event type
@param
<T> event type
@return
the default signal for the event type

on

default <T> EventSignalBuilder<T> on(Class<T> eventType)

Starts a fluent configuration for an event type.

@param
eventType Velocity event type
@param
<T> event type
@return
a builder for the post order option