public abstract class PrivateGinModule extends Object implements GinModule
PrivateModule
.Constructor and Description |
---|
PrivateGinModule() |
Modifier and Type | Method and Description |
---|---|
protected <T> GinAnnotatedBindingBuilder<T> |
bind(Class<T> clazz) |
protected <T> GinLinkedBindingBuilder<T> |
bind(Key<T> key) |
protected <T> GinAnnotatedBindingBuilder<T> |
bind(TypeLiteral<T> type) |
protected GinAnnotatedConstantBindingBuilder |
bindConstant() |
protected PrivateGinBinder |
binder()
Returns the current binder.
|
protected abstract void |
configure()
Creates bindings and other configurations private to this module.
|
void |
configure(GinBinder binder)
Contributes bindings and other configurations for this module to
binder . |
protected GinAnnotatedElementBuilder |
expose(Class<?> type)
Makes a binding for
type available to other modules and the injector. |
protected <T> void |
expose(Key<T> key)
Makes the binding for
key available to other modules and the injector. |
protected GinAnnotatedElementBuilder |
expose(TypeLiteral<?> type)
Makes a binding for
type available to other modules and the injector. |
protected void |
install(GinModule install) |
protected void |
requestStaticInjection(Class<?>... types) |
public void configure(GinBinder binder)
GinModule
binder
.protected abstract void configure()
expose()
to make the bindings in this module available externally.protected final <T> void expose(Key<T> key)
key
available to other modules and the injector.protected final GinAnnotatedElementBuilder expose(Class<?> type)
type
available to other modules and the injector. Use annotatedWith()
to expose type
with a binding annotation.protected final GinAnnotatedElementBuilder expose(TypeLiteral<?> type)
type
available to other modules and the injector. Use annotatedWith()
to expose type
with a binding annotation.protected final PrivateGinBinder binder()
protected final <T> GinAnnotatedBindingBuilder<T> bind(Class<T> clazz)
protected final <T> GinAnnotatedBindingBuilder<T> bind(TypeLiteral<T> type)
protected final <T> GinLinkedBindingBuilder<T> bind(Key<T> key)
protected final GinAnnotatedConstantBindingBuilder bindConstant()
protected final void install(GinModule install)
protected void requestStaticInjection(Class<?>... types)
Copyright © 2008–2018. All rights reserved.