nyla.solutions.global.patterns.observer.Subject Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nyla.solutions.global Show documentation
Show all versions of nyla.solutions.global Show documentation
Nyla Solutions Global Java API provides support for basic application
utilities (application configuration, data encryption, debugger and text
processing).
The newest version!
package nyla.solutions.global.patterns.observer;
import nyla.solutions.global.data.Nameable;
/**
*
* Subject Send notify signal to observer object whenever data changes
* @author Gregory Green
*
*/
public interface Subject extends Nameable
{
/**
*
* @param obsever the observer to add
*/
public void add(SubjectObserver obsever);
/**
*
* @param observer the observer to
*/
public void remove(SubjectObserver observer);
/**
*
* @param object notify all observers
*/
void notify(Object object);
}