public class PrivateBinderAdapter extends Object implements PrivateGinBinder
PrivateGinBinder interface and adapts it to a regular Guice
PrivateBinder.| Modifier and Type | Method and Description |
|---|---|
<T> GinAnnotatedBindingBuilder<T> |
bind(Class<T> clazz)
See the EDSL examples at
GinBinder |
<T> GinLinkedBindingBuilder<T> |
bind(Key<T> key)
See the EDSL examples at
GinBinder |
<T> GinAnnotatedBindingBuilder<T> |
bind(TypeLiteral<T> clazz)
See the EDSL examples at
GinBinder |
GinAnnotatedConstantBindingBuilder |
bindConstant()
See the EDSL examples at
GinBinder |
GinAnnotatedElementBuilder |
expose(Class<?> type)
Expose the given class.
|
void |
expose(Key<?> key)
Expose the given key.
|
GinAnnotatedElementBuilder |
expose(TypeLiteral<?> type)
Expose the given type.
|
void |
install(GinModule install)
Uses the given module to configure more bindings.
|
void |
requestStaticInjection(Class<?>... types)
Upon successful creation, the
Ginjector will inject static fields
and methods in the given classes. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbind, bind, bind, bindConstant, install, requestStaticInjectionpublic void expose(Key<?> key)
PrivateGinBinderexpose in interface PrivateGinBinderpublic GinAnnotatedElementBuilder expose(Class<?> type)
PrivateGinBinderGinAnnotatedElementBuilder which
can be used for adding an annotation.expose in interface PrivateGinBinderpublic GinAnnotatedElementBuilder expose(TypeLiteral<?> type)
PrivateGinBinderGinAnnotatedElementBuilder which
can be used for adding an annotation.expose in interface PrivateGinBinderpublic <T> GinAnnotatedBindingBuilder<T> bind(Class<T> clazz)
GinBinderGinBinderpublic <T> GinAnnotatedBindingBuilder<T> bind(TypeLiteral<T> clazz)
GinBinderGinBinderpublic <T> GinLinkedBindingBuilder<T> bind(Key<T> key)
GinBinderGinBinderpublic GinAnnotatedConstantBindingBuilder bindConstant()
GinBinderGinBinderbindConstant in interface GinBinderpublic void install(GinModule install)
GinBinderpublic void requestStaticInjection(Class<?>... types)
GinBinderGinjector will inject static fields
and methods in the given classes.requestStaticInjection in interface GinBindertypes - for which static members will be injectedCopyright © 2008–2018. All rights reserved.