Scala Monitoring and Control System API
com.lafros.macs.util.SubjectObserver

trait Subject

[source: com/lafros/macs/util/SubjectObserver.scala]

trait Subject
extends AnyRef
to be extended by the subject.
Direct Known Subclasses:
Di

Method Summary
def publish : Unit
invoke the notify method implemented by registered observers, supplying this subject as the argument.
def subscribe (obs : ObserverType) : Unit
register the specified observer.
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
def subscribe(obs : ObserverType) : Unit
register the specified observer.

def publish : Unit
invoke the notify method implemented by registered observers, supplying this subject as the argument.


Copyright 2009 Latterfrosken Software Development Limited