com.arsdigita.domain
Interface GlobalObserver

All Superinterfaces:
DomainObjectObserver
All Known Implementing Classes:
PermissionsObserver

public interface GlobalObserver
extends DomainObjectObserver

The GlobalObserver interface can be used in conjunction with the GlobalObserverManager to register an observer that will observe every single observable domain object. This should be used with extreme caution since global observers can be called for every single operation that happens on any domain object. If one of the global observers is slow or error prone this could cause the system to become slow and/or extremely non robust.

Version:
$Revision: #6 $ $Date: 2004/04/07 $
Author:
rhs@mit.edu

Field Summary
static String versionId
           
 
Method Summary
 boolean shouldObserve(DomainObject dobj)
          This method should return a value indicating whether or not this GlobalObserver wishes to observe the given domain object.
 
Methods inherited from interface com.arsdigita.domain.DomainObjectObserver
add, afterDelete, afterSave, beforeDelete, beforeSave, clear, remove, set
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Method Detail

shouldObserve

public boolean shouldObserve(DomainObject dobj)
This method should return a value indicating whether or not this GlobalObserver wishes to observe the given domain object.

Parameters:
dobj - The domain object that is a candidate for observation.


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC