@Target(value=METHOD) @Retention(value=RUNTIME) @Documented public @interface EventBusListenerTopic
EventBusListenerMethod annotation.
A topic is specified as string which will be defined when publishing an event.
Each method annotated with this annotation and the corresponding topic will be
called as listener.
Topics can be filtered with implementations of the TopicFilter interface.EventBusListenerMethod,
TopicFilter| Modifier and Type | Optional Element and Description |
|---|---|
Class<? extends TopicFilter> |
filter
The filter to be used to validate the published and listener topic.
|
String |
topic
A topic is a string which can be specified while publishing an event.
|
public abstract String topic
public abstract Class<? extends TopicFilter> filter
TopicFilter interface.Copyright © 2017. All rights reserved.