|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.model.events.AnnotationBasedEventListenerAdapter
public class AnnotationBasedEventListenerAdapter
AnnotationBasedEventListenerAdapter
| Constructor Summary | |
|---|---|
AnnotationBasedEventListenerAdapter()
Constructor for AnnotationBasedEventListenerAdapter. |
|
AnnotationBasedEventListenerAdapter(Object annotatedListener,
EventSubscriptionService subscriptionService)
Constructor for AnnotationBasedEventListenerAdapter. |
|
AnnotationBasedEventListenerAdapter(String name,
Object annotatedListener,
EventSubscriptionService subscriptionService)
Constructor for AnnotationBasedEventListenerAdapter. |
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
afterPropertiesSet |
void |
destroy()
destroy |
String |
getLogPrefix()
getLogPrefix |
String |
getName()
getName |
protected void |
handleException(Event event,
Throwable cause)
handleException |
void |
onEvent(Event event)
Process a sent event. |
protected void |
postprocessEvent(Event event)
postprocessEvent |
protected void |
preprocessEvent(Event event)
preprocessEvent |
protected void |
processEvent(Event event,
Method method)
processEvent |
void |
setAnnotatedListener(Object annotatedListener)
setAnnotatedListener |
void |
setEventSubscriptionService(EventSubscriptionService subscriptionService)
setEventSubscriptionService |
void |
setLogPrefix(String logPrefix)
setLogPrefix |
void |
setName(String name)
setName |
void |
stop()
stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnnotationBasedEventListenerAdapter(String name,
Object annotatedListener,
EventSubscriptionService subscriptionService)
Constructor for AnnotationBasedEventListenerAdapter.
name - a String object.annotatedListener - a Object object.subscriptionService - a EventSubscriptionService object.
public AnnotationBasedEventListenerAdapter(Object annotatedListener,
EventSubscriptionService subscriptionService)
Constructor for AnnotationBasedEventListenerAdapter.
annotatedListener - a Object object.subscriptionService - a EventSubscriptionService object.public AnnotationBasedEventListenerAdapter()
Constructor for AnnotationBasedEventListenerAdapter.
| Method Detail |
|---|
public String getName()
getName
getName in interface EventListenerString object.public void setName(String name)
setName
name - a String object.public String getLogPrefix()
getLogPrefix
public void setLogPrefix(String logPrefix)
setLogPrefix
logPrefix - the logPrefix to setpublic void onEvent(Event event)
onEvent in interface EventListenerevent - a Event object.
protected void postprocessEvent(Event event)
throws IllegalAccessException,
InvocationTargetException
postprocessEvent
event - a Event object.
IllegalAccessException - if any.
InvocationTargetException - if any.
protected void processEvent(Event event,
Method method)
throws IllegalAccessException,
InvocationTargetException
processEvent
event - a Event object.method - a Method object.
IllegalAccessException - if any.
InvocationTargetException - if any.
protected void preprocessEvent(Event event)
throws IllegalAccessException,
InvocationTargetException
preprocessEvent
event - a Event object.
IllegalAccessException - if any.
InvocationTargetException - if any.
protected void handleException(Event event,
Throwable cause)
handleException
event - a Event object.cause - a Throwable object.public void setAnnotatedListener(Object annotatedListener)
setAnnotatedListener
annotatedListener - a Object object.public void afterPropertiesSet()
afterPropertiesSet
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic void stop()
stop
stop in interface StoppableEventListener
public void destroy()
throws Exception
destroy
destroy in interface org.springframework.beans.factory.DisposableBeanException - if any.public void setEventSubscriptionService(EventSubscriptionService subscriptionService)
setEventSubscriptionService
subscriptionService - a EventSubscriptionService object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||