at.ac.tuwien.infosys.sm4all.copal.api.util
Interface Observable<E extends java.lang.Enum<?>,T,O extends Observer<E,T>>

Type Parameters:
E - the type of change represented as an Enum.
T - the type of changed object.
O - the type of Observer that can attach and detach to this Observable.
All Known Subinterfaces:
ContextEventTypeRegistry, ContextProcessorRegistry, ContextPublisherRegistry, ContextQueryFactory, DeadLetterChannel, RegistryObservable<T>
All Known Implementing Classes:
ActionQuery, Attributes, Authorizations, BaseObservable, BaseRegistry, ConcreteObservable, ContextEventTypeRegistryImpl, ContextProcessorRegistryImpl, ContextPublisherRegistryImpl, ContextQuery, ContextQueryFactoryImpl, DeadLetterChannelImpl, EsperPublishing, ProcessedEventQuery, RegistryService

public interface Observable<E extends java.lang.Enum<?>,T,O extends Observer<E,T>>

The interface which represents an object that can be observed.

Author:
sanjin

Method Summary
 void attach(O observer)
          Attaches specified Observer so it will in future receive notifications on changes.
 void detach(O observer)
          Detach specified Observer so it will not receive any future notifications on changes.
 

Method Detail

attach

void attach(O observer)
Attaches specified Observer so it will in future receive notifications on changes.

Parameters:
observer - the Observer.

detach

void detach(O observer)
Detach specified Observer so it will not receive any future notifications on changes.

Parameters:
observer - the Observer.


Copyright © 2010 Distributed Systems Group, Vienna University of Technology. All Rights Reserved.