org.sonatype.guice.bean.locators.spi
Interface BindingSubscriber


public interface BindingSubscriber

Subscriber of Bindings from one or more BindingPublishers.


Method Summary
<T> void
add(com.google.inject.Binding<T> binding, int rank)
          Adds the given ranked Binding to this subscriber.
 void clear()
          Removes all known Bindings from this subscriber.
<T> void
remove(com.google.inject.Binding<T> binding)
          Removes the given Binding from this subscriber.
 

Method Detail

add

<T> void add(com.google.inject.Binding<T> binding,
             int rank)
Adds the given ranked Binding to this subscriber.

Parameters:
binding - The new binding
rank - The assigned rank

remove

<T> void remove(com.google.inject.Binding<T> binding)
Removes the given Binding from this subscriber.

Parameters:
binding - The old binding

clear

void clear()
Removes all known Bindings from this subscriber.



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