org.apache.lenya.cms.observation
Interface ObservationRegistry

All Superinterfaces:
RepositoryListener

public interface ObservationRegistry
extends RepositoryListener

Observation registry.


Field Summary
static java.lang.String ROLE
          The Avalon service role.
 
Method Summary
 void registerListener(RepositoryListener listener)
          Registers a listener which is notified for all events.
 void registerListener(RepositoryListener listener, Document document)
           
 
Methods inherited from interface org.apache.lenya.cms.observation.RepositoryListener
eventFired
 

Field Detail

ROLE

static final java.lang.String ROLE
The Avalon service role.

Method Detail

registerListener

void registerListener(RepositoryListener listener,
                      Document document)
                      throws ObservationException
Parameters:
listener - The listener.
document - The document to listen to.
Throws:
ObservationException - if the listener is already registered for this document.

registerListener

void registerListener(RepositoryListener listener)
                      throws ObservationException
Registers a listener which is notified for all events.

Parameters:
listener - The listener.
Throws:
ObservationException - if the listener is already registered.


Copyright 1999-2006 Apache Software Foundation. All Rights Reserved.