listener - Passing one object to many classes using Java -


i need pass object 1 class many different classes.

the aim of create 1 method broadcasts object other classes listening. more classes can added , need implement listener function class , not edit of framework.

i trying accomplish without use of jms (if it's possible!)

observer pattern rescue! woooosh!

let subject define method relaying object many listening observers. can dynamically add , remove listeners.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -