Subject< T extends Observer< U, U extends Event > Interface Template Reference
Inheritance diagram for Subject< T extends Observer< U, U extends Event >:

Public Member Functions

void subscribe (T observer) throws CannotSubscribeException
 
void unSubscribe (T observer) throws ObserverNotSubscribedException
 

Detailed Description

Subject

Member Function Documentation

void subscribe ( observer) throws CannotSubscribeException

Subscribes to the subject

Parameters
observersubject observer
Exceptions
CannotSubscribeException
void unSubscribe ( observer) throws ObserverNotSubscribedException

Unsubscribes from the subject

Parameters
observersubject observer
Exceptions
CannotSubscribeException