I have three classes serviceManager,serviceMasterHandler and WokerThread.serviceManager instantiate ServiceMasterHandler,ServiceMasterHandler instantiate and start workerThread.
I want to implements that each class started successfully it’s send status to calling upper classes.
All ideas on how to implement is welcome.
Thanks
Have you already heard about
PropertyChangeEventand associated classes (likePropertyChangeListenerandPropertyChangeSupport) ? If not, go take a look at them .. And read the chapter in Java tutorial about ProperttyChangeListener. Notice that, although it’s defined in a Swing context, elements fromjava.beanscan perfectly be used anywhere else, as they are not Swing-dependant.