org.bushe.swing.event.annotation
Class ProxyTopicPatternSubscriber
java.lang.Object
org.bushe.swing.event.annotation.AbstractProxySubscriber
org.bushe.swing.event.annotation.ProxyTopicSubscriber
org.bushe.swing.event.annotation.ProxyTopicPatternSubscriber
- All Implemented Interfaces:
- EventTopicSubscriber, ProxySubscriber
public class ProxyTopicPatternSubscriber
- extends ProxyTopicSubscriber
A Proxy Subscriber for Annotations that use topic patterns
Method Summary |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
toString()
|
protected void |
unsubscribe(java.lang.String topic)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ProxyTopicPatternSubscriber
public ProxyTopicPatternSubscriber(java.lang.Object proxiedSubscriber,
java.lang.reflect.Method subscriptionMethod,
ReferenceStrength referenceStrength,
EventService es,
java.lang.String patternString,
java.util.regex.Pattern pattern)
- Creates a proxy. This does not subscribe it.
- Parameters:
proxiedSubscriber
- the subscriber that the proxy will call when an event is publishedsubscriptionMethod
- the method the proxy will call, must have an Object as it's first and only parameterreferenceStrength
- if the subscription is weak, the reference from the proxy to the real subscriber should
be tooes
- the EventService we will be subscribed to, since we may need to unsubscribe when weak refs no longer
existpatternString
- the Regular Expression for topics to subscribe to, used for unsubscription only
unsubscribe
protected void unsubscribe(java.lang.String topic)
- Overrides:
unsubscribe
in class ProxyTopicSubscriber
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class ProxyTopicSubscriber
toString
public java.lang.String toString()
- Overrides:
toString
in class ProxyTopicSubscriber