|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.amis.pogamut.base.communication.worldview.listener.annotation.AnnotationListenerRegistrator
public class AnnotationListenerRegistrator
| Constructor Summary | |
|---|---|
AnnotationListenerRegistrator(Object obj,
IWorldView worldView,
Logger log)
|
|
| Method Summary | |
|---|---|
void |
addListeners()
Introspect all object's methods and register various listeners based on EventListener, etc... |
static WorldObjectId |
getId(Method method,
Class idClass,
String id)
Tries to instantiate ID class of 'idClass' with 'id' as an identifier. |
static WorldObjectId |
getId(Method method,
ObjectEventListener annotation)
Returns a new WorldObjectId for the given 'annotation'. |
static WorldObjectId |
getId(Method method,
ObjectListener annotation)
Returns a new WorldObjectId for the given 'annotation'. |
static ListenerLevel |
getListenerLevel(Method method)
Returns listener level that is gained from the method's annotation. |
int |
getListenersCount()
|
Logger |
getLog()
|
static boolean |
isStaticMethod(Method method)
Tells whether 'method' is static. |
void |
removeListeners()
Removes (unregister) all the listeners the registrator has created. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnnotationListenerRegistrator(Object obj,
IWorldView worldView,
Logger log)
| Method Detail |
|---|
public static WorldObjectId getId(Method method,
Class idClass,
String id)
method - idClass - id -
public static WorldObjectId getId(Method method,
ObjectListener annotation)
WorldObjectId for the given 'annotation'.
method - annotation -
public static boolean isStaticMethod(Method method)
method -
public static WorldObjectId getId(Method method,
ObjectEventListener annotation)
WorldObjectId for the given 'annotation'.
method - annotation -
public static ListenerLevel getListenerLevel(Method method)
method -
public void addListeners()
throws ListenersAlreadyRegisteredException
EventListener, etc... annotations.
addListeners in interface IListenerRegistratorobj -
ListenersAlreadyRegisteredExceptionpublic int getListenersCount()
public void removeListeners()
IListenerRegistrator
removeListeners in interface IListenerRegistratorpublic Logger getLog()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||