|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.inject.spi.ModuleWriter
public class ModuleWriter
Creates a Module from a collection of component elements.
Constructor Summary | |
---|---|
ModuleWriter()
|
Method Summary | ||
---|---|---|
void |
apply(Binder binder,
Iterable<? extends Element> elements)
Replays elements against binder . |
|
protected void |
applyScoping(Binding<?> binding,
ScopedBindingBuilder scopedBindingBuilder)
|
|
protected
|
bindKeyToTarget(Binding<T> binding,
Binder binder,
Key<T> key)
Execute this target against the linked binding builder. |
|
Module |
create(Iterable<? extends Element> elements)
Returns a module that executes the specified elements using this executing visitor. |
|
protected PrivateBinder |
getPrivateBinder(PrivateEnvironment privateEnvironment)
Returns the binder accociated with privateEnvironment . |
|
protected void |
setPrivateBinder(PrivateEnvironment privateEnvironment,
PrivateBinder binder)
Associates binder with privateEnvironment . |
|
protected
|
writeBind(Binder binder,
Binding<T> element)
|
|
protected void |
writeBindInterceptor(Binder binder,
InterceptorBinding element)
|
|
protected void |
writeBindScope(Binder binder,
ScopeBinding element)
|
|
protected void |
writeConvertToTypes(Binder binder,
TypeConverterBinding element)
|
|
protected
|
writeGetProvider(Binder binder,
ProviderLookup<T> element)
|
|
protected void |
writeMessage(Binder binder,
Message element)
|
|
protected void |
writePrivateElements(Binder binder,
PrivateEnvironment element)
Writes the elements of the private environment to a new private binder and associates the two. |
|
protected void |
writeRequestInjection(Binder binder,
InjectionRequest command)
|
|
protected void |
writeRequestStaticInjection(Binder binder,
StaticInjectionRequest element)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ModuleWriter()
Method Detail |
---|
public final Module create(Iterable<? extends Element> elements)
public final void apply(Binder binder, Iterable<? extends Element> elements)
elements
against binder
.
protected void writeMessage(Binder binder, Message element)
protected void writeBindInterceptor(Binder binder, InterceptorBinding element)
protected void writeBindScope(Binder binder, ScopeBinding element)
protected void writeRequestInjection(Binder binder, InjectionRequest command)
protected void writeRequestStaticInjection(Binder binder, StaticInjectionRequest element)
protected void writeConvertToTypes(Binder binder, TypeConverterBinding element)
protected <T> void writeBind(Binder binder, Binding<T> element)
protected void writePrivateElements(Binder binder, PrivateEnvironment element)
associates
the two.
protected <T> ScopedBindingBuilder bindKeyToTarget(Binding<T> binding, Binder binder, Key<T> key)
protected void setPrivateBinder(PrivateEnvironment privateEnvironment, PrivateBinder binder)
binder
with privateEnvironment
.
protected PrivateBinder getPrivateBinder(PrivateEnvironment privateEnvironment)
binder
accociated with privateEnvironment
. This can be used to
expose bindings to the enclosing environment.
protected void applyScoping(Binding<?> binding, ScopedBindingBuilder scopedBindingBuilder)
protected <T> void writeGetProvider(Binder binder, ProviderLookup<T> element)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |