public class DefaultConfiguration extends Object implements Configuration
Configuration
interfaceModifier and Type | Field and Description |
---|---|
protected Class<? extends Annotation> |
altEntityAnn |
protected Class<? extends Annotation> |
embeddableAnn |
protected Class<? extends Annotation> |
embeddedAnn |
protected Class<? extends Annotation> |
entitiesAnn |
protected Class<? extends Annotation> |
entityAnn |
protected Class<? extends Annotation> |
skipAnn |
protected Class<? extends Annotation> |
superTypeAnn |
Constructor and Description |
---|
DefaultConfiguration(RoundEnvironment roundEnv,
Map<String,String> options,
Collection<String> keywords,
Class<? extends Annotation> entitiesAnn,
Class<? extends Annotation> entityAnn,
Class<? extends Annotation> superTypeAnn,
Class<? extends Annotation> embeddableAnn,
Class<? extends Annotation> embeddedAnn,
Class<? extends Annotation> skipAnn) |
protected final Class<? extends Annotation> entityAnn
@Nullable protected final Class<? extends Annotation> entitiesAnn
@Nullable protected final Class<? extends Annotation> superTypeAnn
@Nullable protected final Class<? extends Annotation> embeddedAnn
@Nullable protected final Class<? extends Annotation> embeddableAnn
@Nullable protected final Class<? extends Annotation> skipAnn
@Nullable protected Class<? extends Annotation> altEntityAnn
public DefaultConfiguration(RoundEnvironment roundEnv, Map<String,String> options, Collection<String> keywords, @Nullable Class<? extends Annotation> entitiesAnn, Class<? extends Annotation> entityAnn, @Nullable Class<? extends Annotation> superTypeAnn, @Nullable Class<? extends Annotation> embeddableAnn, @Nullable Class<? extends Annotation> embeddedAnn, @Nullable Class<? extends Annotation> skipAnn)
public void addExcludedClass(String className)
addExcludedClass
in interface Configuration
public void addExcludedPackage(String packageName)
addExcludedPackage
in interface Configuration
public VisitorConfig getConfig(TypeElement e, List<? extends Element> elements)
getConfig
in interface Configuration
public Serializer getDTOSerializer()
getDTOSerializer
in interface Configuration
@Nullable public Class<? extends Annotation> getEntitiesAnnotation()
getEntitiesAnnotation
in interface Configuration
@Nullable public Class<? extends Annotation> getEmbeddableAnnotation()
getEmbeddableAnnotation
in interface Configuration
public Serializer getEmbeddableSerializer()
getEmbeddableSerializer
in interface Configuration
public Class<? extends Annotation> getEntityAnnotation()
getEntityAnnotation
in interface Configuration
public Class<? extends Annotation> getAlternativeEntityAnnotation()
getAlternativeEntityAnnotation
in interface Configuration
public void setAlternativeEntityAnnotation(Class<? extends Annotation> ann)
@Nullable public Class<? extends Annotation> getEmbeddedAnnotation()
getEmbeddedAnnotation
in interface Configuration
public Set<Class<? extends Annotation>> getEntityAnnotations()
getEntityAnnotations
in interface Configuration
public Serializer getEntitySerializer()
getEntitySerializer
in interface Configuration
public String getNamePrefix()
getNamePrefix
in interface Configuration
public SerializerConfig getSerializerConfig(EntityType entityType)
getSerializerConfig
in interface Configuration
@Nullable public Class<? extends Annotation> getSkipAnnotation()
getSkipAnnotation
in interface Configuration
@Nullable public Class<? extends Annotation> getSuperTypeAnnotation()
getSuperTypeAnnotation
in interface Configuration
public Serializer getSupertypeSerializer()
getSupertypeSerializer
in interface Configuration
public void inspect(Element element, Annotations annotations)
inspect
in interface Configuration
public boolean isBlockedField(VariableElement field)
isBlockedField
in interface Configuration
public boolean isBlockedGetter(ExecutableElement getter)
isBlockedGetter
in interface Configuration
public boolean isUseFields()
isUseFields
in interface Configuration
public boolean isUseGetters()
isUseGetters
in interface Configuration
public boolean isValidConstructor(ExecutableElement constructor)
isValidConstructor
in interface Configuration
public boolean isValidField(VariableElement field)
isValidField
in interface Configuration
public boolean isValidGetter(ExecutableElement getter)
isValidGetter
in interface Configuration
public void setNamePrefix(String namePrefix)
public void setUseFields(boolean b)
public void setUseGetters(boolean b)
public TypeMappings getTypeMappings()
getTypeMappings
in interface Configuration
public Collection<String> getKeywords()
getKeywords
in interface Configuration
public String getNameSuffix()
getNameSuffix
in interface Configuration
public void setNameSuffix(String nameSuffix)
public <T> void addCustomType(Class<T> type, Class<? extends Expression<T>> queryType)
public QueryTypeFactory getQueryTypeFactory()
getQueryTypeFactory
in interface Configuration
public boolean isExcludedPackage(@Nonnull String packageName)
isExcludedPackage
in interface Configuration
public boolean isExcludedClass(@Nonnull String className)
isExcludedClass
in interface Configuration
public TypeMirror getRealType(ExecutableElement method)
getRealType
in interface Configuration
public TypeMirror getRealType(VariableElement field)
getRealType
in interface Configuration
public boolean isUnknownAsEmbedded()
isUnknownAsEmbedded
in interface Configuration
public boolean isStrictMode()
isStrictMode
in interface Configuration
public void setStrictMode(boolean s)
public void setUnknownAsEmbedded(boolean unknownAsEmbedded)
Copyright © 2007–2015 Mysema Ltd. All rights reserved.