Class DefaultInclusionStrategy
- java.lang.Object
-
- io.leangen.graphql.metadata.strategy.DefaultInclusionStrategy
-
- All Implemented Interfaces:
InclusionStrategy
public class DefaultInclusionStrategy extends Object implements InclusionStrategy
-
-
Constructor Summary
Constructors Constructor Description DefaultInclusionStrategy(String... basePackages)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
includeArgument(Parameter parameter, AnnotatedType declaringType)
boolean
includeArgumentForMapping(Parameter parameter, AnnotatedType parameterType, AnnotatedType declaringType)
boolean
includeInputField(InputFieldInclusionParams params)
boolean
includeOperation(List<AnnotatedElement> elements, AnnotatedType declaringType)
protected boolean
isDirectlyIgnored(AnnotatedElement element)
protected boolean
isIgnored(AnnotatedElement element)
protected boolean
isPackageAcceptable(AnnotatedType type, Class<?> elementDeclaringClass)
-
-
-
Constructor Detail
-
DefaultInclusionStrategy
public DefaultInclusionStrategy(String... basePackages)
-
-
Method Detail
-
includeOperation
public boolean includeOperation(List<AnnotatedElement> elements, AnnotatedType declaringType)
- Specified by:
includeOperation
in interfaceInclusionStrategy
-
includeArgument
public boolean includeArgument(Parameter parameter, AnnotatedType declaringType)
- Specified by:
includeArgument
in interfaceInclusionStrategy
-
includeArgumentForMapping
public boolean includeArgumentForMapping(Parameter parameter, AnnotatedType parameterType, AnnotatedType declaringType)
- Specified by:
includeArgumentForMapping
in interfaceInclusionStrategy
-
includeInputField
public boolean includeInputField(InputFieldInclusionParams params)
- Specified by:
includeInputField
in interfaceInclusionStrategy
-
isPackageAcceptable
protected boolean isPackageAcceptable(AnnotatedType type, Class<?> elementDeclaringClass)
-
isDirectlyIgnored
protected boolean isDirectlyIgnored(AnnotatedElement element)
-
isIgnored
protected boolean isIgnored(AnnotatedElement element)
-
-