public interface PrivateBinder extends Binder
PrivateModule for details.
| Modifier and Type | Method and Description |
|---|---|
AnnotatedElementBuilder |
expose(Class
Makes a binding for
type available to the enclosing environment.
|
void |
expose(Key
Makes the binding for
key available to the enclosing environment
|
AnnotatedElementBuilder |
expose(TypeLiteral
Makes a binding for
type available to the enclosing environment.
|
PrivateBinder |
skipSources(Class
Returns a binder that skips
classesToSkip when identify the calling code.
|
PrivateBinder |
withSource(Object
Returns a binder that uses
source as the reference location for configuration errors.
|
addError, addError, addError, bind, bind, bind, bindConstant, bindInterceptor, bindListener, bindListener, bindScope, convertToTypes, currentStage, disableCircularProxies, getMembersInjector, getMembersInjector, getProvider, getProvider, getProvider, install, newPrivateBinder, requestInjection, requestInjection, requestStaticInjection, requireAtInjectOnConstructors, requireExactBindingAnnotations, requireExplicitBindings, scanModulesForAnnotatedMethodsvoid expose(Key<?> key)
key available to the enclosing environment
AnnotatedElementBuilderexpose(Class <?> type)
type available to the enclosing environment. Use
annotatedWith() to expose
type with a binding annotation.
AnnotatedElementBuilderexpose(TypeLiteral <?> type)
type available to the enclosing environment. Use
annotatedWith() to expose
type with a binding annotation.
PrivateBinderwithSource(Object source)
Binder
source as the reference location for configuration errors. This is typically a
StackTraceElement for
.java source but it could any binding source, such as the path to a
.properties file.
withSource in interface
Binder
source - any object representing the source location and has a concise
toString() value
PrivateBinderskipSources(Class ... classesToSkip)
Binder
classesToSkip when identify the calling code. The caller's
StackTraceElement is used to locate the source of configuration errors.
skipSources in interface
Binder
classesToSkip - library classes that create bindings on behalf of their clients.