com.google.inject
Class PrivateEnvironmentProcessor

java.lang.Object
  extended by com.google.inject.PrivateEnvironmentProcessor
All Implemented Interfaces:
ElementVisitor<Boolean>

public class PrivateEnvironmentProcessor
extends Object

Handles Binder.newPrivateBinder() elements.


Field Summary
protected  com.google.inject.internal.Errors errors
           
protected  com.google.inject.InjectorImpl injector
           
 
Method Summary
 List<com.google.inject.InjectorShell.Builder> getInjectorShellBuilders()
           
 void process(com.google.inject.InjectorImpl injector, List<Element> elements)
           
 void process(Iterable<com.google.inject.InjectorShell> isolatedInjectorBuilders)
           
<T> Boolean
visitBinding(Binding<T> binding)
          Visit a mapping from a key (type and optional annotation) to the strategy for getting instances of the type.
 Boolean visitInjectionRequest(InjectionRequest injectionRequest)
          Visit a request to inject the instance fields and methods of an instance.
 Boolean visitInterceptorBinding(InterceptorBinding interceptorBinding)
          Visit a registration of interceptors for matching methods of matching classes.
 Boolean visitMessage(Message message)
          Visit an error message and the context in which it occured.
 Boolean visitPrivateEnvironment(PrivateEnvironment privateEnvironment)
          Visit a collection of configuration elements for a private environment.
<T> Boolean
visitProviderLookup(ProviderLookup<T> providerLookup)
          Visit a lookup of the provider for a type.
 Boolean visitScopeBinding(ScopeBinding scopeBinding)
          Visit a registration of a scope annotation with the scope that implements it.
 Boolean visitStaticInjectionRequest(StaticInjectionRequest staticInjectionRequest)
          Visit a request to inject the static fields and methods of type.
 Boolean visitTypeConverterBinding(TypeConverterBinding typeConverterBinding)
          Visit a registration of type converters for matching target types.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

errors

protected com.google.inject.internal.Errors errors

injector

protected com.google.inject.InjectorImpl injector
Method Detail

visitPrivateEnvironment

public Boolean visitPrivateEnvironment(PrivateEnvironment privateEnvironment)
Description copied from interface: ElementVisitor
Visit a collection of configuration elements for a private environment.

Specified by:
visitPrivateEnvironment in interface ElementVisitor<Boolean>

getInjectorShellBuilders

public List<com.google.inject.InjectorShell.Builder> getInjectorShellBuilders()

process

public void process(Iterable<com.google.inject.InjectorShell> isolatedInjectorBuilders)

process

public void process(com.google.inject.InjectorImpl injector,
                    List<Element> elements)

visitMessage

public Boolean visitMessage(Message message)
Description copied from interface: ElementVisitor
Visit an error message and the context in which it occured.

Specified by:
visitMessage in interface ElementVisitor<Boolean>

visitInterceptorBinding

public Boolean visitInterceptorBinding(InterceptorBinding interceptorBinding)
Description copied from interface: ElementVisitor
Visit a registration of interceptors for matching methods of matching classes.

Specified by:
visitInterceptorBinding in interface ElementVisitor<Boolean>

visitScopeBinding

public Boolean visitScopeBinding(ScopeBinding scopeBinding)
Description copied from interface: ElementVisitor
Visit a registration of a scope annotation with the scope that implements it.

Specified by:
visitScopeBinding in interface ElementVisitor<Boolean>

visitInjectionRequest

public Boolean visitInjectionRequest(InjectionRequest injectionRequest)
Description copied from interface: ElementVisitor
Visit a request to inject the instance fields and methods of an instance.

Specified by:
visitInjectionRequest in interface ElementVisitor<Boolean>

visitStaticInjectionRequest

public Boolean visitStaticInjectionRequest(StaticInjectionRequest staticInjectionRequest)
Description copied from interface: ElementVisitor
Visit a request to inject the static fields and methods of type.

Specified by:
visitStaticInjectionRequest in interface ElementVisitor<Boolean>

visitTypeConverterBinding

public Boolean visitTypeConverterBinding(TypeConverterBinding typeConverterBinding)
Description copied from interface: ElementVisitor
Visit a registration of type converters for matching target types.

Specified by:
visitTypeConverterBinding in interface ElementVisitor<Boolean>

visitBinding

public <T> Boolean visitBinding(Binding<T> binding)
Description copied from interface: ElementVisitor
Visit a mapping from a key (type and optional annotation) to the strategy for getting instances of the type.

Specified by:
visitBinding in interface ElementVisitor<Boolean>

visitProviderLookup

public <T> Boolean visitProviderLookup(ProviderLookup<T> providerLookup)
Description copied from interface: ElementVisitor
Visit a lookup of the provider for a type.

Specified by:
visitProviderLookup in interface ElementVisitor<Boolean>