L
- type of the interface that defines contract for working with the particular topic instancepublic class Topic<L>
extends java.lang.Object
bus
.Modifier and Type | Class and Description |
---|---|
static class |
Topic.BroadcastDirection
Message buses may be organised into hierarchies . |
Constructor and Description |
---|
Topic(java.lang.Class<L> listenerClass) |
Topic(java.lang.Class<L> listenerClass,
Topic.BroadcastDirection broadcastDirection) |
Topic(java.lang.String displayName,
java.lang.Class<L> listenerClass) |
Topic(java.lang.String displayName,
java.lang.Class<L> listenerClass,
Topic.BroadcastDirection broadcastDirection) |
Modifier and Type | Method and Description |
---|---|
static <L> Topic<L> |
create(java.lang.String displayName,
java.lang.Class<L> listenerClass) |
static <L> Topic<L> |
create(java.lang.String displayName,
java.lang.Class<L> listenerClass,
Topic.BroadcastDirection direction) |
Topic.BroadcastDirection |
getBroadcastDirection() |
java.lang.String |
getDisplayName() |
java.lang.Class<L> |
getListenerClass()
Allows to retrieve class that defines contract for working with the current topic.
|
java.lang.String |
toString() |
public Topic(java.lang.String displayName, java.lang.Class<L> listenerClass)
public Topic(java.lang.Class<L> listenerClass)
public Topic(java.lang.Class<L> listenerClass, Topic.BroadcastDirection broadcastDirection)
public Topic(java.lang.String displayName, java.lang.Class<L> listenerClass, Topic.BroadcastDirection broadcastDirection)
public java.lang.String getDisplayName()
public java.lang.Class<L> getListenerClass()
receives
object that IS-A target interface from the messaging infrastructure.
It calls target method with the target arguments on it then (method of the interface returned by the current method);
subscribers
that
should receive the message;
public java.lang.String toString()
toString
in class java.lang.Object
public static <L> Topic<L> create(java.lang.String displayName, java.lang.Class<L> listenerClass)
public static <L> Topic<L> create(java.lang.String displayName, java.lang.Class<L> listenerClass, Topic.BroadcastDirection direction)
public Topic.BroadcastDirection getBroadcastDirection()
Topic.BroadcastDirection.TO_CHILDREN
Topic.BroadcastDirection