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.modeshape.graph.observe
Interface Observable

All Known Subinterfaces:
  ObservationBus

All Known Implementing Classes:
  ChangeObservers, ClusteredObservationBus, ClusteringService, JcrRepository.RepositoryObservationManager, LocalObservationBus, RepositoryLibrary

    @ThreadSafe
    public interface Observable

Interface used to register `listeners`. Implementations should use a `ChangeObservers` to actually manage the listeners.

Method Summary
`boolean` | `register(Observer observer)` Register the supplied observer.
`boolean` | `unregister(Observer observer)` Unregister the supplied observer.

Method Detail

### register

    boolean register(Observer observer)

  Register the supplied observer. This method does nothing if the observer reference is null.

  Parameters:
    `observer` - the observer to be added; may be null
  Returns:
    true if the observer was added, or false if the observer was null, if the observer was already registered, or if the observer could not be added

### unregister

    boolean unregister(Observer observer)

  Unregister the supplied observer. This method does nothing if the observer reference is null.

  Parameters:
    `observer` - the observer to be removed; may not be null
  Returns:
    true if the observer was removed, or false if the observer was null or if the observer was not registered on this source

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 © 2008-2011 JBoss, a division of Red Hat. All Rights Reserved.