public class ListenerDefinition extends Object
WebProvider.listeners()
to define the listeners that must be registered by Seed. The registered listener will be injectable and
interceptable.Constructor and Description |
---|
ListenerDefinition(Class<? extends EventListener> listenerClass)
Creates a listener definition with the specified listener class.
|
Modifier and Type | Method and Description |
---|---|
Class<? extends EventListener> |
getListenerClass() |
int |
getPriority() |
void |
setPriority(int priority)
Sets the registration priority of this listener.
|
public ListenerDefinition(Class<? extends EventListener> listenerClass)
listenerClass
- the listener class.public Class<? extends EventListener> getListenerClass()
public int getPriority()
SeedListenerPriority.NORMAL
by default).public void setPriority(int priority)
priority
- the absolute priority of this listener.Copyright © 2013-2018–2019 SeedStack. All rights reserved.