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.
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 voidAbstractModule.bindInterceptor(Matcher<? super Class<?>> classMatcher, Matcher<? super Method> methodMatcher, org.aopalliance.intercept.MethodInterceptor... interceptors) voidBinder.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 voidPrivateModule.bindInterceptor(Matcher<? super Class<?>> classMatcher, Matcher<? super Method> methodMatcher, org.aopalliance.intercept.MethodInterceptor... interceptors) protected voidAbstractModule.bindListener(Matcher<? super Binding<?>> bindingMatcher, ProvisionListener... listener) protected voidAbstractModule.bindListener(Matcher<? super TypeLiteral<?>> typeMatcher, TypeListener listener) voidBinder.bindListener(Matcher<? super Binding<?>> bindingMatcher, ProvisionListener... listeners) Registers listeners for provisioned objects.voidBinder.bindListener(Matcher<? super TypeLiteral<?>> typeMatcher, TypeListener listener) Registers a listener for injectable types.protected voidPrivateModule.bindListener(Matcher<? super Binding<?>> bindingMatcher, ProvisionListener... listeners) protected voidPrivateModule.bindListener(Matcher<? super TypeLiteral<?>> typeMatcher, TypeListener listener) protected voidAbstractModule.convertToTypes(Matcher<? super TypeLiteral<?>> typeMatcher, TypeConverter converter) voidBinder.convertToTypes(Matcher<? super TypeLiteral<?>> typeMatcher, TypeConverter converter) Binds a type converter.protected final voidPrivateModule.convertToTypes(Matcher<? super TypeLiteral<?>> typeMatcher, TypeConverter converter) -
Uses of Matcher in com.google.inject.matcher
Classes in com.google.inject.matcher that implement MatcherMethods in com.google.inject.matcher that return MatcherModifier and TypeMethodDescriptionDeprecated.Returns a new matcher which returnstrueif 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.Deprecated.Returns a new matcher which returnstrueif 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 TypeMethodDescriptionDeprecated.Returns a new matcher which returnstrueif both this and the given matcher returntrue.static <T> Matcher<T> Inverts the given matcher.Deprecated.Returns a new matcher which returnstrueif either this or the given matcher returntrue.Returns a matcher which matches methods with matching return types. -
Uses of Matcher in com.google.inject.spi
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 TypeMethodDescriptionvoidTypeEncounter.bindInterceptor(Matcher<? super Method> methodMatcher, org.aopalliance.intercept.MethodInterceptor... interceptors) Binds method interceptor[s] to methods matched in typeIand its supertypes.Constructors in com.google.inject.spi with parameters of type MatcherModifierConstructorDescriptionTypeConverterBinding(Object source, Matcher<? super TypeLiteral<?>> typeMatcher, TypeConverter typeConverter)
and()andor()yourself, but is no longer necessary now thatMatcherimplements these methods.