Uses of Interface
com.google.inject.matcher.Matcher
Packages that use Matcher
Package
Description
Google Guice (pronounced "juice") is an ultra-lightweight dependency injection framework.
Guice (sounds like "juice")
Used for matching things.
Guice service provider interface
-
Uses of Matcher in com.google.inject
Methods in com.google.inject with parameters of type MatcherModifier and TypeMethodDescriptionprotected void
AbstractModule.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.protected final void
PrivateModule.bindInterceptor
(Matcher<? super Class<?>> classMatcher, Matcher<? super Method> methodMatcher, org.aopalliance.intercept.MethodInterceptor... interceptors) protected void
AbstractModule.bindListener
(Matcher<? super Binding<?>> bindingMatcher, ProvisionListener... listener) protected void
AbstractModule.bindListener
(Matcher<? super TypeLiteral<?>> typeMatcher, TypeListener listener) void
Binder.bindListener
(Matcher<? super Binding<?>> bindingMatcher, ProvisionListener... listeners) Registers listeners for provisioned objects.void
Binder.bindListener
(Matcher<? super TypeLiteral<?>> typeMatcher, TypeListener listener) Registers a listener for injectable types.protected void
PrivateModule.bindListener
(Matcher<? super Binding<?>> bindingMatcher, ProvisionListener... listeners) 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 final void
PrivateModule.convertToTypes
(Matcher<? super TypeLiteral<?>> typeMatcher, TypeConverter converter) -
Uses of Matcher in com.google.inject.internal
Fields in com.google.inject.internal declared as MatcherMethods in com.google.inject.internal with parameters of type MatcherModifier and TypeMethodDescriptionvoid
EncounterImpl.bindInterceptor
(Matcher<? super Method> methodMatcher, org.aopalliance.intercept.MethodInterceptor... interceptors) private static void
TypeConverterBindingProcessor.convertToClasses
(InjectorImpl injector, Matcher<? super Class<?>> typeMatcher, TypeConverter converter) private static void
TypeConverterBindingProcessor.internalConvertToTypes
(InjectorImpl injector, Matcher<? super TypeLiteral<?>> typeMatcher, TypeConverter converter) Constructors in com.google.inject.internal with parameters of type MatcherModifierConstructorDescription(package private)
MethodAspect
(Matcher<? super Class<?>> classMatcher, Matcher<? super Method> methodMatcher, List<org.aopalliance.intercept.MethodInterceptor> interceptors) (package private)
MethodAspect
(Matcher<? super Class<?>> classMatcher, Matcher<? super Method> methodMatcher, org.aopalliance.intercept.MethodInterceptor... interceptors) -
Uses of Matcher in com.google.inject.matcher
Classes in com.google.inject.matcher that implement MatcherModifier and TypeClassDescriptionclass
Implementsand()
andor()
.private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
private static class
Matchers.Not<T>
private static class
private static class
private static class
Fields in com.google.inject.matcher declared as MatcherModifier and TypeFieldDescriptionAbstractMatcher.AndMatcher.a
AbstractMatcher.OrMatcher.a
Matchers.ANY
AbstractMatcher.AndMatcher.b
AbstractMatcher.OrMatcher.b
Matchers.Not.delegate
Matchers.Returns.returnType
Methods in com.google.inject.matcher that return MatcherModifier and TypeMethodDescriptionReturns a new matcher which returnstrue
if both this and the given matcher returntrue
.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.Matchers.any()
Returns a matcher which matches any input.Matchers.identicalTo
(Object value) Returns a matcher which matches only the given object.Returns a matcher which matches classes in the given package.Matchers.inSubpackage
(String targetPackageName) Returns a matcher which matches classes in the given package and its subpackages.static <T> Matcher
<T> Inverts the given matcher.Returns a matcher which matches objects equal to the given object.Returns a new matcher which returnstrue
if either this or the given matcher returntrue
.Returns a matcher which matches methods with matching return types.Matchers.subclassesOf
(Class<?> superclass) Returns a matcher which matches subclasses of the given type (as well as the given type).Methods in com.google.inject.matcher with parameters of type MatcherModifier and TypeMethodDescriptionReturns a new matcher which returnstrue
if both this and the given matcher returntrue
.static <T> Matcher
<T> Inverts the given matcher.Returns a new matcher which returnstrue
if either this or the given matcher returntrue
.Returns a matcher which matches methods with matching return types.Constructors in com.google.inject.matcher with parameters of type Matcher -
Uses of Matcher in com.google.inject.spi
Fields in com.google.inject.spi declared as MatcherModifier and TypeFieldDescriptionProvisionListenerBinding.bindingMatcher
InterceptorBinding.classMatcher
InterceptorBinding.methodMatcher
private final Matcher
<? super TypeLiteral<?>> TypeConverterBinding.typeMatcher
private final Matcher
<? super TypeLiteral<?>> TypeListenerBinding.typeMatcher
Methods in com.google.inject.spi that return MatcherModifier and TypeMethodDescriptionProvisionListenerBinding.getBindingMatcher()
Returns the binding matcher which chooses which bindings the listener should be notified of.InterceptorBinding.getClassMatcher()
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.Methods in com.google.inject.spi with parameters of type MatcherModifier and TypeMethodDescriptionvoid
Elements.RecordingBinder.bindInterceptor
(Matcher<? super Class<?>> classMatcher, Matcher<? super Method> methodMatcher, org.aopalliance.intercept.MethodInterceptor... interceptors) void
TypeEncounter.bindInterceptor
(Matcher<? super Method> methodMatcher, org.aopalliance.intercept.MethodInterceptor... interceptors) Binds method interceptor[s] to methods matched in typeI
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) Constructors in com.google.inject.spi with parameters of type MatcherModifierConstructorDescription(package private)
InterceptorBinding
(Object source, Matcher<? super Class<?>> classMatcher, Matcher<? super Method> methodMatcher, org.aopalliance.intercept.MethodInterceptor[] interceptors) (package private)
ProvisionListenerBinding
(Object source, Matcher<? super Binding<?>> bindingMatcher, ProvisionListener[] listeners) TypeConverterBinding
(Object source, Matcher<? super TypeLiteral<?>> typeMatcher, TypeConverter typeConverter) (package private)
TypeListenerBinding
(Object source, TypeListener listener, Matcher<? super TypeLiteral<?>> typeMatcher)