org.sonatype.guice.bean.locators
Interface MutableBeanLocator

All Superinterfaces:
BeanLocator, BindingDistributor
All Known Implementing Classes:
DefaultBeanLocator

public interface MutableBeanLocator
extends BeanLocator, BindingDistributor

Mutable BeanLocator that finds and tracks bindings across zero or more BindingPublishers.


Method Summary
 void add(com.google.inject.Injector injector, int rank)
          Deprecated. 
 void remove(com.google.inject.Injector injector)
          Removes the given Injector and its Bindings.
 
Methods inherited from interface org.sonatype.guice.bean.locators.BeanLocator
locate, watch
 
Methods inherited from interface org.sonatype.guice.bean.locators.spi.BindingDistributor
add, clear, remove
 

Method Detail

add

@Deprecated
void add(com.google.inject.Injector injector,
                    int rank)
Deprecated. 

Adds the given ranked Injector and distributes its Bindings. Marked as deprecated because most clients should not call this method; any injector that contains a binding to the BeanLocator is automatically added to that locator as part of the bootstrapping process.

Parameters:
injector - The new injector
rank - The assigned rank

remove

void remove(com.google.inject.Injector injector)
Removes the given Injector and its Bindings.

Parameters:
injector - The old injector


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