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

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


org.jboss.aspects.patterns.observable
Interface Subject

All Known Implementing Classes:
SubjectImpl

public interface Subject

A Subject. This interface is exposed on the advised object.

Version:
$Revision: 1.1 $
Author:
Adrian Brock

Method Summary
 void addObserver(Observer observer)
          Add an observer
 void notifyObservers()
          Notify all observers
 void removeObserver(Observer observer)
          Remove an observer
 

Method Detail

addObserver

public void addObserver(Observer observer)
Add an observer

Parameters:
observer - the observer

removeObserver

public void removeObserver(Observer observer)
Remove an observer

Parameters:
observer - the observer

notifyObservers

public void notifyObservers()
Notify all observers



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