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, wait
bind, bind, bind, bindConstant, install, requestStaticInjection
public void expose(Key<?> key)
PrivateGinBinder
expose
in interface PrivateGinBinder
public GinAnnotatedElementBuilder expose(Class<?> type)
PrivateGinBinder
GinAnnotatedElementBuilder
which
can be used for adding an annotation.expose
in interface PrivateGinBinder
public GinAnnotatedElementBuilder expose(TypeLiteral<?> type)
PrivateGinBinder
GinAnnotatedElementBuilder
which
can be used for adding an annotation.expose
in interface PrivateGinBinder
public <T> GinAnnotatedBindingBuilder<T> bind(Class<T> clazz)
GinBinder
GinBinder
public <T> GinAnnotatedBindingBuilder<T> bind(TypeLiteral<T> clazz)
GinBinder
GinBinder
public <T> GinLinkedBindingBuilder<T> bind(Key<T> key)
GinBinder
GinBinder
public GinAnnotatedConstantBindingBuilder bindConstant()
GinBinder
GinBinder
bindConstant
in interface GinBinder
public void install(GinModule install)
GinBinder
public void requestStaticInjection(Class<?>... types)
GinBinder
Ginjector
will inject static fields
and methods in the given classes.requestStaticInjection
in interface GinBinder
types
- for which static members will be injectedCopyright © 2008–2018. All rights reserved.