Class TypePatternMatcherFactory
- java.lang.Object
-
- org.hibernate.search.mapper.pojo.model.typepattern.impl.TypePatternMatcherFactory
-
public class TypePatternMatcherFactory extends Object
-
-
Constructor Summary
Constructors Constructor Description TypePatternMatcherFactory(PojoBootstrapIntrospector introspector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypePatternMatchercreateExactRawTypeMatcher(Class<?> exactTypeToMatch)ExtractingTypePatternMatchercreateExtractingMatcher(Type typePattern, Type typeToExtract)TypePatternMatchercreateRawSuperTypeMatcher(Class<?> superTypeToMatch)
-
-
-
Constructor Detail
-
TypePatternMatcherFactory
public TypePatternMatcherFactory(PojoBootstrapIntrospector introspector)
- Parameters:
introspector- An introspector to use for reflection, mainly forPojoBootstrapIntrospector.typeModel(Class).
-
-
Method Detail
-
createExactRawTypeMatcher
public TypePatternMatcher createExactRawTypeMatcher(Class<?> exactTypeToMatch)
-
createRawSuperTypeMatcher
public TypePatternMatcher createRawSuperTypeMatcher(Class<?> superTypeToMatch)
-
createExtractingMatcher
public ExtractingTypePatternMatcher createExtractingMatcher(Type typePattern, Type typeToExtract)
- Parameters:
typePattern- The type used as a pattern to be matched. Not all types are accepted.typeToExtract- The type to extract when matching the pattern. Not all types are accepted.- Returns:
- A type pattern matcher matching subtypes of
typePatternand returning thetypeToExtractresolved against the type submitted to the matcher in the even of a match. - Throws:
UnsupportedOperationException- If this factory does not support creating a type pattern matcher for the given types.
-
-