Class ExoEntityProcessor
java.lang.Object
javax.annotation.processing.AbstractProcessor
org.exoplatform.commons.api.persistence.ExoEntityProcessor
- All Implemented Interfaces:
Processor
@SupportedAnnotationTypes("org.exoplatform.commons.api.persistence.ExoEntity")
@SupportedSourceVersion(RELEASE_21)
public class ExoEntityProcessor
extends AbstractProcessor
At compile time, every time a Maven module that uses @ExoEntity is compiled, the ExoEntityProcessor is invoked.
This Annotation Processor (see JSR 269) creates an index that contains the list of all
the JPA entities annotated with @ExoEntity of the module.
This index is stored in the file “exo-jpa-entities/entities.idx” of the generated jar.
Created by The eXo Platform SAS
Author : eXoPlatform exo@exoplatform.com
7/22/15
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated, for removal: This API element is subject to removal in a future version.will be removed to ease the path of entities listingstatic final StringPath to the generated entities.idx fileFields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprocess(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, init, isInitialized
-
Field Details
-
DEPRECATED_ENTITIES_IDX_PATH
Deprecated, for removal: This API element is subject to removal in a future version.will be removed to ease the path of entities listing- See Also:
-
ENTITIES_IDX_PATH
Path to the generated entities.idx file- See Also:
-
-
Constructor Details
-
ExoEntityProcessor
public ExoEntityProcessor()
-
-
Method Details
-
process
- Specified by:
processin interfaceProcessor- Specified by:
processin classAbstractProcessor
-