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 EventDispatcherget()static EventDispatchergetDefault(String name)EventDispatcher.Factoryhandler(Consumer<Throwable> handler)EventDispatcher.Factoryprocessor(Processor processor)EventDispatcher.Factoryregistry(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:
getin interfaceSupplier<EventDispatcher>
-
-