org.sonatype.inject
Interface Mediator<Q,T,W>

All Known Implementing Classes:
NamedMediatorAdapter

public interface Mediator<Q,T,W>

Mediates bean events sent from the BeanLocator to associated watchers.


Method Summary
 void add(Q qualifier, javax.inject.Provider<T> bean, W watcher)
          Notifies the associated watcher that a qualified bean has been added.
 void remove(Q qualifier, javax.inject.Provider<T> bean, W watcher)
          Notifies the associated watcher that a qualified bean has been removed.
 

Method Detail

add

void add(Q qualifier,
         javax.inject.Provider<T> bean,
         W watcher)
         throws java.lang.Exception
Notifies the associated watcher that a qualified bean has been added.

Parameters:
qualifier - The bean qualifier
bean - The bean provider
watcher - The associated watcher
Throws:
java.lang.Exception

remove

void remove(Q qualifier,
            javax.inject.Provider<T> bean,
            W watcher)
            throws java.lang.Exception
Notifies the associated watcher that a qualified bean has been removed.

Parameters:
qualifier - The bean qualifier
bean - The bean provider
watcher - The associated watcher
Throws:
java.lang.Exception


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