Package org.rspeer.event
Class EventDispatcher.Factory
- java.lang.Object
-
- org.rspeer.event.EventDispatcher.Factory
-
- All Implemented Interfaces:
Supplier<EventDispatcher>
- Enclosing class:
- EventDispatcher
public static class EventDispatcher.Factory extends Object implements Supplier<EventDispatcher>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EventDispatcher
get()
static EventDispatcher
getDefault(String name)
EventDispatcher.Factory
handler(Consumer<Throwable> handler)
EventDispatcher.Factory
processor(Processor processor)
EventDispatcher.Factory
registry(Registry registry)
-
-
-
Constructor Detail
-
Factory
public Factory(String name)
-
-
Method Detail
-
getDefault
public static EventDispatcher getDefault(String name)
-
registry
public EventDispatcher.Factory registry(Registry registry)
-
processor
public EventDispatcher.Factory processor(Processor processor)
-
handler
public EventDispatcher.Factory handler(Consumer<Throwable> handler)
-
get
public EventDispatcher get()
- Specified by:
get
in interfaceSupplier<EventDispatcher>
-
-