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 |
---|---|
protected void |
AbstractModule.bindInterceptor(Matcher<? super Class<?>> classMatcher,
Matcher<? super Method> methodMatcher,
org.aopalliance.intercept.MethodInterceptor... interceptors) |
protected void |
AbstractModule.bindInterceptor(Matcher<? super Class<?>> classMatcher,
Matcher<? super Method> methodMatcher,
org.aopalliance.intercept.MethodInterceptor... interceptors) |
protected void |
PrivateModule.bindInterceptor(Matcher<? super Class<?>> classMatcher,
Matcher<? super Method> methodMatcher,
org.aopalliance.intercept.MethodInterceptor... interceptors) |
protected void |
PrivateModule.bindInterceptor(Matcher<? super Class<?>> classMatcher,
Matcher<? super Method> methodMatcher,
org.aopalliance.intercept.MethodInterceptor... interceptors) |
void |
Binder.bindInterceptor(Matcher<? super Class<?>> classMatcher,
Matcher<? super Method> methodMatcher,
org.aopalliance.intercept.MethodInterceptor... interceptors)
Binds method interceptor[s] to methods matched by class and method matchers.
|
void |
Binder.bindInterceptor(Matcher<? super Class<?>> classMatcher,
Matcher<? super Method> methodMatcher,
org.aopalliance.intercept.MethodInterceptor... interceptors)
Binds method interceptor[s] to methods matched by class and method matchers.
|
protected void |
AbstractModule.bindListener(Matcher<? super Binding<?>> bindingMatcher,
ProvisionListener... listener) |
protected void |
PrivateModule.bindListener(Matcher<? super Binding<?>> bindingMatcher,
ProvisionListener... listeners) |
void |
Binder.bindListener(Matcher<? super Binding<?>> bindingMatcher,
ProvisionListener... listeners)
Registers listeners for provisioned objects.
|
protected void |
AbstractModule.bindListener(Matcher<? super TypeLiteral<?>> typeMatcher,
TypeListener listener) |
protected void |
PrivateModule.bindListener(Matcher<? super TypeLiteral<?>> typeMatcher,
TypeListener listener) |
void |
Binder.bindListener(Matcher<? super TypeLiteral<?>> typeMatcher,
TypeListener listener)
Registers a listener for injectable types.
|
protected void |
AbstractModule.convertToTypes(Matcher<? super TypeLiteral<?>> typeMatcher,
TypeConverter converter) |
protected void |
PrivateModule.convertToTypes(Matcher<? super TypeLiteral<?>> typeMatcher,
TypeConverter converter) |
void |
Binder.convertToTypes(Matcher<? super TypeLiteral<?>> typeMatcher,
TypeConverter converter)
Binds a type converter.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractMatcher<T>
Implements
and() and or() . |
Modifier and Type | Method and Description |
---|---|
Matcher<T> |
Matcher.and(Matcher<? super T> other)
Returns a new matcher which returns
true if both this and the given matcher return
true . |
Matcher<T> |
AbstractMatcher.and(Matcher<? super T> other) |
static Matcher<AnnotatedElement> |
Matchers.annotatedWith(Annotation annotation)
Returns a matcher which matches elements (methods, classes, etc.) with a given annotation.
|
static Matcher<AnnotatedElement> |
Matchers.annotatedWith(Class<? extends Annotation> annotationType)
Returns a matcher which matches elements (methods, classes, etc.) with a given annotation.
|
static Matcher<Object> |
Matchers.any()
Returns a matcher which matches any input.
|
static Matcher<Object> |
Matchers.identicalTo(Object value)
Returns a matcher which matches only the given object.
|
static Matcher<Class> |
Matchers.inPackage(Package targetPackage)
Returns a matcher which matches classes in the given package.
|
static Matcher<Class> |
Matchers.inSubpackage(String targetPackageName)
Returns a matcher which matches classes in the given package and its subpackages.
|
static <T> Matcher<T> |
Matchers.not(Matcher<? super T> p)
Inverts the given matcher.
|
static Matcher<Object> |
Matchers.only(Object value)
Returns a matcher which matches objects equal to the given object.
|
Matcher<T> |
Matcher.or(Matcher<? super T> other)
Returns a new matcher which returns
true if either this or the given matcher return
true . |
Matcher<T> |
AbstractMatcher.or(Matcher<? super T> other) |
static Matcher<Method> |
Matchers.returns(Matcher<? super Class<?>> returnType)
Returns a matcher which matches methods with matching return types.
|
static Matcher<Class> |
Matchers.subclassesOf(Class<?> superclass)
Returns a matcher which matches subclasses of the given type (as well as the given type).
|
Modifier and Type | Method and Description |
---|---|
Matcher<T> |
Matcher.and(Matcher<? super T> other)
Returns a new matcher which returns
true if both this and the given matcher return
true . |
Matcher<T> |
AbstractMatcher.and(Matcher<? super T> other) |
static <T> Matcher<T> |
Matchers.not(Matcher<? super T> p)
Inverts the given matcher.
|
Matcher<T> |
Matcher.or(Matcher<? super T> other)
Returns a new matcher which returns
true if either this or the given matcher return
true . |
Matcher<T> |
AbstractMatcher.or(Matcher<? super T> other) |
static Matcher<Method> |
Matchers.returns(Matcher<? super Class<?>> returnType)
Returns a matcher which matches methods with matching return types.
|
Modifier and Type | Method and Description |
---|---|
Matcher<? super Binding<?>> |
ProvisionListenerBinding.getBindingMatcher()
Returns the binding matcher which chooses which bindings the listener should be notified of.
|
Matcher<? super Class<?>> |
InterceptorBinding.getClassMatcher() |
Matcher<? super Method> |
InterceptorBinding.getMethodMatcher() |
Matcher<? super TypeLiteral<?>> |
TypeListenerBinding.getTypeMatcher()
Returns the type matcher which chooses which types the listener should be notified of.
|
Matcher<? super TypeLiteral<?>> |
TypeConverterBinding.getTypeMatcher() |
Modifier and Type | Method and Description |
---|---|
void |
TypeEncounter.bindInterceptor(Matcher<? super Method> methodMatcher,
org.aopalliance.intercept.MethodInterceptor... interceptors)
Binds method interceptor[s] to methods matched in type
I and its supertypes. |
Constructor and Description |
---|
TypeConverterBinding(Object source,
Matcher<? super TypeLiteral<?>> typeMatcher,
TypeConverter typeConverter) |
Copyright © 2006–2018 Google, Inc.. All rights reserved.