|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.bus.support.AbstractSubscriber<PropertyChangeMessage>
net.sf.doolin.bus.support.BothWayPropertyChangeSubscriber
public final class BothWayPropertyChangeSubscriber
This subscriber connects two properties in two different beans, in both directions. If the property of the source bean changes, then the property on the target bean is updated and vice-versa.
| Constructor Summary | |
|---|---|
BothWayPropertyChangeSubscriber(SubscriberValidator validator,
Object sourceBean,
String sourcePropertyPath,
Object targetBean,
String targetPropertyPath)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
accept(PropertyChangeMessage message)
Checks the message |
String |
getExecutionDescription()
Describes the execution. |
String |
getTriggerDescription()
Description for the trigger |
void |
receive(PropertyChangeMessage message)
This method called whenever a message is received. |
String |
toString()
|
| Methods inherited from class net.sf.doolin.bus.support.AbstractSubscriber |
|---|
getMessageClass, getValidatorDescription, isValid |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BothWayPropertyChangeSubscriber(SubscriberValidator validator,
Object sourceBean,
String sourcePropertyPath,
Object targetBean,
String targetPropertyPath)
validator - Validator for the subscriptionsourceBean - Source beansourcePropertyPath - Source property pathtargetBean - Target beantargetPropertyPath - Target property path| Method Detail |
|---|
public String getExecutionDescription()
SubscriberExecution
public String getTriggerDescription()
SubscriberTrigger
public boolean accept(PropertyChangeMessage message)
SubscriberTrigger
public void receive(PropertyChangeMessage message)
SubscriberExecution
message - Message to handlepublic String toString()
toString in class AbstractSubscriber<PropertyChangeMessage>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||