| Package | Description |
|---|---|
| com.google.inject |
Google Guice (pronounced "juice") is an ultra-lightweight dependency injection framework.
|
| com.google.inject.matcher |
Used for matching things.
|
| com.google.inject.spi |
Guice service provider interface
|
| Modifier and Type | Method and Description |
|---|---|
void |
Binder.bindInterceptor(Matcher
Binds method interceptor[s] to methods matched by class and method matchers.
|
void |
Binder.bindInterceptor(Matcher
Binds method interceptor[s] to methods matched by class and method matchers.
|
protected void |
AbstractModule.bindInterceptor(Matcher
|
protected void |
AbstractModule.bindInterceptor(Matcher
|
protected void |
PrivateModule.bindInterceptor(Matcher
|
protected void |
PrivateModule.bindInterceptor(Matcher
|
void |
Binder.bindListener(Matcher
Registers listeners for provisioned objects.
|
protected void |
AbstractModule.bindListener(Matcher
|
protected void |
PrivateModule.bindListener(Matcher
|
void |
Binder.bindListener(Matcher
Registers a listener for injectable types.
|
protected void |
AbstractModule.bindListener(Matcher
|
protected void |
PrivateModule.bindListener(Matcher
|
void |
Binder.convertToTypes(Matcher
Binds a type converter.
|
protected void |
AbstractModule.convertToTypes(Matcher
|
protected void |
PrivateModule.convertToTypes(Matcher
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractMatcher<T>
Implements
and() and
or().
|
| Modifier and Type | Method and Description |
|---|---|
Matcher |
AbstractMatcher.and(Matcher
|
Matcher |
Matcher.and(Matcher
Returns a new matcher which returns
true if both this and the given matcher return
true.
|
static Matcher |
Matchers.annotatedWith(Annotation
Returns a matcher which matches elements (methods, classes, etc.) with a given annotation.
|
static Matcher |
Matchers.annotatedWith(Class
Returns a matcher which matches elements (methods, classes, etc.) with a given annotation.
|
static Matcher |
Matchers.any()
Returns a matcher which matches any input.
|
static Matcher |
Matchers.identicalTo(Object
Returns a matcher which matches only the given object.
|
static Matcher |
Matchers.inPackage(Package
Returns a matcher which matches classes in the given package.
|
static Matcher |
Matchers.inSubpackage(String
Returns a matcher which matches classes in the given package and its subpackages.
|
static <T> Matcher |
Matchers.not(Matcher
Inverts the given matcher.
|
static Matcher |
Matchers.only(Object
Returns a matcher which matches objects equal to the given object.
|
Matcher |
AbstractMatcher.or(Matcher
|
Matcher |
Matcher.or(Matcher
Returns a new matcher which returns
true if either this or the given matcher return
true.
|
static Matcher |
Matchers.returns(Matcher
Returns a matcher which matches methods with matching return types.
|
static Matcher |
Matchers.subclassesOf(Class
Returns a matcher which matches subclasses of the given type (as well as the given type).
|
| Modifier and Type | Method and Description |
|---|---|
Matcher |
AbstractMatcher.and(Matcher
|
Matcher |
Matcher.and(Matcher
Returns a new matcher which returns
true if both this and the given matcher return
true.
|
static <T> Matcher |
Matchers.not(Matcher
Inverts the given matcher.
|
Matcher |
AbstractMatcher.or(Matcher
|
Matcher |
Matcher.or(Matcher
Returns a new matcher which returns
true if either this or the given matcher return
true.
|
static Matcher |
Matchers.returns(Matcher
Returns a matcher which matches methods with matching return types.
|
| Modifier and Type | Method and Description |
|---|---|
Matcher |
ProvisionListenerBinding.getBindingMatcher()
Returns the binding matcher which chooses which bindings the listener should be notified of.
|
Matcher |
InterceptorBinding.getClassMatcher()
|
Matcher |
InterceptorBinding.getMethodMatcher()
|
Matcher |
TypeConverterBinding.getTypeMatcher()
|
Matcher |
TypeListenerBinding.getTypeMatcher()
Returns the type matcher which chooses which types the listener should be notified of.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TypeEncounter.bindInterceptor(Matcher
Binds method interceptor[s] to methods matched in type
I and its supertypes.
|
| Constructor and Description | |
|---|---|
TypeConverterBinding(Object
|