public class NamedEventManager extends Object
Constructor and Description |
---|
NamedEventManager() |
Modifier and Type | Method and Description |
---|---|
void |
addNamedEvent(String shortName,
Class<? extends ComponentSystemEvent> cls)
Registers a named event.
|
Collection<Class<? extends ComponentSystemEvent>> |
getNamedEvent(String shortName)
Retrieves a collection of system event classes based on their short name.
|
public void addNamedEvent(String shortName, Class<? extends ComponentSystemEvent> cls)
shortName
- a String containing the short name for the event, from the @NamedEvent.shortName()
attribute.cls
- the event class to register.public Collection<Class<? extends ComponentSystemEvent>> getNamedEvent(String shortName)
shortName
- the short name to look up.Copyright © 2020 The Apache Software Foundation. All rights reserved.