Package | Description |
---|---|
com.google.inject |
Google Guice (pronounced "juice") is an ultra-lightweight dependency
injection framework.
|
com.google.inject.internal |
Guice (sounds like like "juice")
|
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 java.lang.Class<?>> classMatcher,
Matcher<? super java.lang.reflect.Method> methodMatcher,
org.aopalliance.intercept.MethodInterceptor... interceptors) |
protected void |
AbstractModule.bindInterceptor(Matcher<? super java.lang.Class<?>> classMatcher,
Matcher<? super java.lang.reflect.Method> methodMatcher,
org.aopalliance.intercept.MethodInterceptor... interceptors) |
void |
Binder.bindInterceptor(Matcher<? super java.lang.Class<?>> classMatcher,
Matcher<? super java.lang.reflect.Method> methodMatcher,
org.aopalliance.intercept.MethodInterceptor... interceptors)
Binds method interceptor[s] to methods matched by class and method matchers.
|
void |
Binder.bindInterceptor(Matcher<? super java.lang.Class<?>> classMatcher,
Matcher<? super java.lang.reflect.Method> methodMatcher,
org.aopalliance.intercept.MethodInterceptor... interceptors)
Binds method interceptor[s] to methods matched by class and method matchers.
|
protected void |
PrivateModule.bindInterceptor(Matcher<? super java.lang.Class<?>> classMatcher,
Matcher<? super java.lang.reflect.Method> methodMatcher,
org.aopalliance.intercept.MethodInterceptor... interceptors) |
protected void |
PrivateModule.bindInterceptor(Matcher<? super java.lang.Class<?>> classMatcher,
Matcher<? super java.lang.reflect.Method> methodMatcher,
org.aopalliance.intercept.MethodInterceptor... interceptors) |
protected void |
AbstractModule.bindListener(Matcher<? super Binding<?>> bindingMatcher,
ProvisionListener... listener) |
void |
Binder.bindListener(Matcher<? super Binding<?>> bindingMatcher,
ProvisionListener... listeners)
Registers listeners for provisioned objects.
|
protected void |
PrivateModule.bindListener(Matcher<? super Binding<?>> bindingMatcher,
ProvisionListener... listeners) |
protected void |
AbstractModule.bindListener(Matcher<? super TypeLiteral<?>> typeMatcher,
TypeListener listener) |
void |
Binder.bindListener(Matcher<? super TypeLiteral<?>> typeMatcher,
TypeListener listener)
Registers a listener for injectable types.
|
protected void |
PrivateModule.bindListener(Matcher<? super TypeLiteral<?>> typeMatcher,
TypeListener listener) |
protected void |
AbstractModule.convertToTypes(Matcher<? super TypeLiteral<?>> typeMatcher,
TypeConverter converter) |
void |
Binder.convertToTypes(Matcher<? super TypeLiteral<?>> typeMatcher,
TypeConverter converter)
Binds a type converter.
|
protected void |
PrivateModule.convertToTypes(Matcher<? super TypeLiteral<?>> typeMatcher,
TypeConverter converter) |
Modifier and Type | Field and Description |
---|---|
private Matcher<? super java.lang.Class<?>> |
MethodAspect.classMatcher |
private Matcher<? super java.lang.reflect.Method> |
MethodAspect.methodMatcher |
Modifier and Type | Method and Description |
---|---|
void |
EncounterImpl.bindInterceptor(Matcher<? super java.lang.reflect.Method> methodMatcher,
org.aopalliance.intercept.MethodInterceptor... interceptors) |
private static void |
TypeConverterBindingProcessor.convertToClasses(InjectorImpl injector,
Matcher<? super java.lang.Class<?>> typeMatcher,
TypeConverter converter) |
private static void |
TypeConverterBindingProcessor.internalConvertToTypes(InjectorImpl injector,
Matcher<? super TypeLiteral<?>> typeMatcher,
TypeConverter converter) |
Constructor and Description |
---|
MethodAspect(Matcher<? super java.lang.Class<?>> classMatcher,
Matcher<? super java.lang.reflect.Method> methodMatcher,
java.util.List<org.aopalliance.intercept.MethodInterceptor> interceptors) |
MethodAspect(Matcher<? super java.lang.Class<?>> classMatcher,
Matcher<? super java.lang.reflect.Method> methodMatcher,
java.util.List<org.aopalliance.intercept.MethodInterceptor> interceptors) |
MethodAspect(Matcher<? super java.lang.Class<?>> classMatcher,
Matcher<? super java.lang.reflect.Method> methodMatcher,
org.aopalliance.intercept.MethodInterceptor... interceptors) |
MethodAspect(Matcher<? super java.lang.Class<?>> classMatcher,
Matcher<? super java.lang.reflect.Method> methodMatcher,
org.aopalliance.intercept.MethodInterceptor... interceptors) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractMatcher<T>
Implements
and() and or() . |
private static class |
AbstractMatcher.AndMatcher<T> |
private static class |
AbstractMatcher.OrMatcher<T> |
private static class |
Matchers.AnnotatedWith |
private static class |
Matchers.AnnotatedWithType |
private static class |
Matchers.Any |
private static class |
Matchers.IdenticalTo |
private static class |
Matchers.InPackage |
private static class |
Matchers.InSubpackage |
private static class |
Matchers.Not<T> |
private static class |
Matchers.Only |
private static class |
Matchers.Returns |
private static class |
Matchers.SubclassesOf |
Modifier and Type | Field and Description |
---|---|
private Matcher<? super T> |
AbstractMatcher.AndMatcher.a |
private Matcher<? super T> |
AbstractMatcher.OrMatcher.a |
private static Matcher<java.lang.Object> |
Matchers.ANY |
private Matcher<? super T> |
AbstractMatcher.AndMatcher.b |
private Matcher<? super T> |
AbstractMatcher.OrMatcher.b |
(package private) Matcher<? super T> |
Matchers.Not.delegate |
private Matcher<? super java.lang.Class<?>> |
Matchers.Returns.returnType |
Modifier and Type | Method and Description |
---|---|
Matcher<T> |
AbstractMatcher.and(Matcher<? super T> other) |
Matcher<T> |
Matcher.and(Matcher<? super T> other)
Returns a new matcher which returns
true if both this and the
given matcher return true . |
static Matcher<java.lang.reflect.AnnotatedElement> |
Matchers.annotatedWith(java.lang.annotation.Annotation annotation)
Returns a matcher which matches elements (methods, classes, etc.)
with a given annotation.
|
static Matcher<java.lang.reflect.AnnotatedElement> |
Matchers.annotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Returns a matcher which matches elements (methods, classes, etc.)
with a given annotation.
|
static Matcher<java.lang.Object> |
Matchers.any()
Returns a matcher which matches any input.
|
static Matcher<java.lang.Object> |
Matchers.identicalTo(java.lang.Object value)
Returns a matcher which matches only the given object.
|
static Matcher<java.lang.Class> |
Matchers.inPackage(java.lang.Package targetPackage)
Returns a matcher which matches classes in the given package.
|
static Matcher<java.lang.Class> |
Matchers.inSubpackage(java.lang.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<java.lang.Object> |
Matchers.only(java.lang.Object value)
Returns a matcher which matches objects equal to the given object.
|
Matcher<T> |
AbstractMatcher.or(Matcher<? super T> other) |
Matcher<T> |
Matcher.or(Matcher<? super T> other)
Returns a new matcher which returns
true if either this or the
given matcher return true . |
static Matcher<java.lang.reflect.Method> |
Matchers.returns(Matcher<? super java.lang.Class<?>> returnType)
Returns a matcher which matches methods with matching return types.
|
static Matcher<java.lang.Class> |
Matchers.subclassesOf(java.lang.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> |
AbstractMatcher.and(Matcher<? super T> other) |
Matcher<T> |
Matcher.and(Matcher<? super T> other)
Returns a new matcher which returns
true if both this and the
given matcher return true . |
static <T> Matcher<T> |
Matchers.not(Matcher<? super T> p)
Inverts the given matcher.
|
Matcher<T> |
AbstractMatcher.or(Matcher<? super T> other) |
Matcher<T> |
Matcher.or(Matcher<? super T> other)
Returns a new matcher which returns
true if either this or the
given matcher return true . |
static Matcher<java.lang.reflect.Method> |
Matchers.returns(Matcher<? super java.lang.Class<?>> returnType)
Returns a matcher which matches methods with matching return types.
|
Constructor and Description |
---|
AndMatcher(Matcher<? super T> a,
Matcher<? super T> b) |
AndMatcher(Matcher<? super T> a,
Matcher<? super T> b) |
Not(Matcher<? super T> delegate) |
OrMatcher(Matcher<? super T> a,
Matcher<? super T> b) |
OrMatcher(Matcher<? super T> a,
Matcher<? super T> b) |
Returns(Matcher<? super java.lang.Class<?>> returnType) |
Modifier and Type | Field and Description |
---|---|
private Matcher<? super Binding<?>> |
ProvisionListenerBinding.bindingMatcher |
private Matcher<? super java.lang.Class<?>> |
InterceptorBinding.classMatcher |
private Matcher<? super java.lang.reflect.Method> |
InterceptorBinding.methodMatcher |
private Matcher<? super TypeLiteral<?>> |
TypeConverterBinding.typeMatcher |
private Matcher<? super TypeLiteral<?>> |
TypeListenerBinding.typeMatcher |
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 java.lang.Class<?>> |
InterceptorBinding.getClassMatcher() |
Matcher<? super java.lang.reflect.Method> |
InterceptorBinding.getMethodMatcher() |
Matcher<? super TypeLiteral<?>> |
TypeConverterBinding.getTypeMatcher() |
Matcher<? super TypeLiteral<?>> |
TypeListenerBinding.getTypeMatcher()
Returns the type matcher which chooses which types the listener should be notified of.
|
Modifier and Type | Method and Description |
---|---|
void |
Elements.RecordingBinder.bindInterceptor(Matcher<? super java.lang.Class<?>> classMatcher,
Matcher<? super java.lang.reflect.Method> methodMatcher,
org.aopalliance.intercept.MethodInterceptor... interceptors) |
void |
Elements.RecordingBinder.bindInterceptor(Matcher<? super java.lang.Class<?>> classMatcher,
Matcher<? super java.lang.reflect.Method> methodMatcher,
org.aopalliance.intercept.MethodInterceptor... interceptors) |
void |
TypeEncounter.bindInterceptor(Matcher<? super java.lang.reflect.Method> methodMatcher,
org.aopalliance.intercept.MethodInterceptor... interceptors)
Binds method interceptor[s] to methods matched in type
I and its supertypes. |
void |
Elements.RecordingBinder.bindListener(Matcher<? super Binding<?>> bindingMatcher,
ProvisionListener... listeners) |
void |
Elements.RecordingBinder.bindListener(Matcher<? super TypeLiteral<?>> typeMatcher,
TypeListener listener) |
void |
Elements.RecordingBinder.convertToTypes(Matcher<? super TypeLiteral<?>> typeMatcher,
TypeConverter converter) |
Constructor and Description |
---|
InterceptorBinding(java.lang.Object source,
Matcher<? super java.lang.Class<?>> classMatcher,
Matcher<? super java.lang.reflect.Method> methodMatcher,
org.aopalliance.intercept.MethodInterceptor[] interceptors) |
InterceptorBinding(java.lang.Object source,
Matcher<? super java.lang.Class<?>> classMatcher,
Matcher<? super java.lang.reflect.Method> methodMatcher,
org.aopalliance.intercept.MethodInterceptor[] interceptors) |
ProvisionListenerBinding(java.lang.Object source,
Matcher<? super Binding<?>> bindingMatcher,
ProvisionListener[] listeners) |
TypeConverterBinding(java.lang.Object source,
Matcher<? super TypeLiteral<?>> typeMatcher,
TypeConverter typeConverter) |
TypeListenerBinding(java.lang.Object source,
TypeListener listener,
Matcher<? super TypeLiteral<?>> typeMatcher) |