public enum EventPublisher extends java.lang.Enum<EventPublisher>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
publish(Event event) |
void |
registerEventListener(EventListener listener)
For internal use only - listeners should register via the ServiceLoader mechanism.
|
static EventPublisher |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EventPublisher[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EventPublisher INSTANCE
public static EventPublisher[] values()
for (EventPublisher c : EventPublisher.values()) System.out.println(c);
public static EventPublisher valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic void publish(Event event)
public void registerEventListener(EventListener listener)
listener - Copyright © 2019. All Rights Reserved.