org.sonatype.inject
Interface Mediator<Q extends java.lang.annotation.Annotation,T,W>


public interface Mediator<Q extends java.lang.annotation.Annotation,T,W>

Mediates bean entries sent from the BeanLocator to associated watching objects.


Method Summary
 void add(BeanEntry<Q,T> entry, W watcher)
          Processes the added BeanEntry and sends the necessary updates to the watcher.
 void remove(BeanEntry<Q,T> entry, W watcher)
          Processes the removed BeanEntry and sends the necessary updates to the watcher.
 

Method Detail

add

void add(BeanEntry<Q,T> entry,
         W watcher)
         throws java.lang.Exception
Processes the added BeanEntry and sends the necessary updates to the watcher.

Parameters:
entry - The added bean entry
watcher - The watching object
Throws:
java.lang.Exception

remove

void remove(BeanEntry<Q,T> entry,
            W watcher)
            throws java.lang.Exception
Processes the removed BeanEntry and sends the necessary updates to the watcher.

Parameters:
entry - The removed bean entry
watcher - The watching object
Throws:
java.lang.Exception


Copyright © 2010-2011 Sonatype, Inc.. All Rights Reserved.