Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jboss.aspects.patterns.observable
Class SubjectImpl

    java.lang.Object
      org.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`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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