|
|||||||||
PREV NEXT | FRAMES NO FRAMES |
and()
and or()
.Module
s which reduces repetition and results in
a more readable configuration.true
if both this and the
given matcher return true
.
Binder
.Binder
.Binder
.Binder
.
Binder
.
Binder
.
Binder
.
Binder
.
Binder
.
elements
against binder
.
componentType
.
Injector
to eagerly initialize this
singleton-scoped binding upon creation.
FactoryProvider
now works better with the standard @Inject
annotation. When using that annotation, parameters are matched by name and type rather than
by position. In addition, values that use the standard @Inject constructor
annotation are eligible for method interception.Binder
.
Binder
.
Binder
.
Binder
.
Binder
.
Injector
.@Named(key)
for each entry in
properties
.
@Named(key)
for each property.
Binder
's
expression language.modules
.
modules
.
messages
.
Binder
via the exposed methods.
Binder
.
Injector
.messages
.
rewritten
.key
available to the enclosing environment
type
available to the enclosing environment.
type
available to the enclosing environment.
key
available to other modules and the injector.
type
available to other modules and the injector.
type
available to other modules and the injector.
Provides
method annotation in a
private module to indicate that the provided binding is exposed.type
.
type
.
type
.
type
.
type
.
type
.
type
.
T
.
Type
instance.
Class
instance.
null
if this
message was not caused by a throwable.
annotated
or default constructor that is invoked
for creating values.
null
if it has not yet been initialized.
modules
.
modules
.
modules
.
modules
.
constructor
.
field
.
getProvider(key).get()
.
getProvider(type).get()
.
-1
if
this dependency does not belong to a parameter list.
methodOrConstructor
.
null
if this is a top-level injector.
binder
accociated with privateEnvironment
.
provide instances
.
method
.
supertype
.
Type
instance.
GuiceServletContextListener
class as a logical place to create and configure your injector.bindings
, providers
and instances that expose their dependencies explicitly.Binder
.
Binder
.
Injector
should inject values.instance
.
Binder
.List
whose elements are of type
elementType
.
Map
whose keys are of type
keyType
and whose values are of type valueType
.
true
or false
for a given input.true
if this matches t
, false
otherwise.
Injector
.Module
.override()
.Named
annotation with name
as the value.
@
Named
.keyType
/valueType
in a
Map
that is itself bound with no binding annotation.
keyType
/valueType
in a
Map
that is itself bound with no binding annotation.
keyType
/valueType
in a
Map
that is itself bound with annotation
.
keyType
/valueType
in a
Map
that is itself bound with annotation
.
keyType
/valueType
in a
Map
that is itself bound with annotationType
.
keyType
/valueType
in a
Map
that is itself bound with annotationType
.
typeArguments
to
rawType
.
typeArguments
to
rawType
and enclosed by ownerType
.
type
in a Set
that is
itself bound with no binding annotation.
type
in a Set
that is
itself bound with no binding annotation.
type
in a Set
that is
itself bound with annotation
.
type
in a Set
that is
itself bound with annotation
.
type
in a Set
that is
itself bound with annotationType
.
type
in a Set
that is
itself bound with annotationType
.
instance
.
true
if either this or the
given matcher return true
.
Provider.get()
when an attempt is made to access a scoped
object while the scope in question is not currently active.T
.Provider
that delegates to the binding for the provided type.Provider
that provides elements of type
elementType
.
Provider
.Module
to create a provider method binding.messages
.
Injector
will inject instance fields
and methods of the given objects.
Map<String, String[]>
when you want the HTTP request parameter map to be injected.Injector
will inject static fields
and methods in the given classes.
key
.
type
.
Binder
.Set
whose elements are of type
elementType
.
binder
with privateEnvironment
.
Injector
.
Injector
) to be reused for all injections for that binding.classesToSkip
when identify the
calling code.
bound
.
bound
.
Provider
that throws
a checked Exception.ThrowingProvider
using a fluent API:Binder
.
Binder
.
Binder
.
Binder
.
Binder
.
Binder
.
Binder
.
T
.element
and return a result.
Provider
that delegates to the binding for the
provided type.
override()
.
override()
.
source
as the reference location for
configuration errors.
associates
the two.
|
|||||||||
PREV NEXT | FRAMES NO FRAMES |