站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 aspects API Documentation 英文版文档

SubjectImpl (JBoss Aspects API) - JBoss 4.0.1 sp1 aspects API Documentation 英文版文档


org.jboss.aspects.patterns.observable
Class SubjectImpl

java.lang.Object
  extended byorg.jboss.aspects.patterns.observable.SubjectImpl
All Implemented Interfaces:
Subject

public class SubjectImpl
extends Object
implements Subject

The subject implementation.

Version:
$Revision: 1.1 $
Author:
Adrian Brock

Constructor Summary
SubjectImpl(Object subject)
           
 
Method Summary
 void addObserver(Observer observer)
          Add an observer
 void notifyObservers()
          Notify all observers
 void removeObserver(Observer observer)
          Remove an observer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubjectImpl

public SubjectImpl(Object subject)
Method Detail

addObserver

public void addObserver(Observer observer)
Description copied from interface: Subject
Add an observer

Specified by:
addObserver in interface Subject
Parameters:
observer - the observer

removeObserver

public void removeObserver(Observer observer)
Description copied from interface: Subject
Remove an observer

Specified by:
removeObserver in interface Subject
Parameters:
observer - the observer

notifyObservers

public void notifyObservers()
Description copied from interface: Subject
Notify all observers

Specified by:
notifyObservers in interface Subject


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.