|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ListenerRegistry<L extends Listener>
This interface represents a registry where Listeners can be registered to be invoked. ListenerRegsitry is injected into an EventDispatcher. Dispatcher eventually invokes Listeners discovering them through getListeners(). Listeners are registered in two modes, blocking and non-blocking. These modes for the consumption of EventDispatcher. For a discussion of blocking and non-blocking modes, please see EventDispatcher.
Method Summary | |
---|---|
java.util.List<L> |
getListeners(boolean blocking) Gets Listeners registered either in blockign or non-blocking modes. |
void |
registerListener(L listener, boolean blocking) Adds a Listener to the registry, in either blocking or non-blocking mode. |
void |
unregisterListener(L listener) Unregisters a Listener. |
Method Detail |
---|
void registerListener(L listener, boolean blocking) throws EventException
listener
- Listener to be registeredblocking
- true
if blocking mode, false
otherwise.EventException
void unregisterListener(L listener) throws EventException
listener
-EventException
java.util.List<L> getListeners(boolean blocking) throws EventException
blocking
- true
if blocking mode Listeners are needed, false
otherwise.EventException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.