public class DBPropertyAnnotationProcessor extends AbstractAnnotationProcessor<DBProperty>
| Modifier and Type | Field and Description |
|---|---|
static String |
DB_DRIVER |
static String |
DB_PASSWORD |
static String |
DB_SCHEMA |
static String |
DB_TABLE |
static String |
DB_TABLE_KEY_COLUMN |
static String |
DB_TABLE_VALUE_COLUMN |
static String |
DB_URL |
static String |
DB_USER |
| Constructor and Description |
|---|
DBPropertyAnnotationProcessor() |
| Modifier and Type | Method and Description |
|---|---|
Object |
processAnnotation(DBProperty dbPropertyAnnotation,
Field field)
Process an annotation of type T.
|
missingAttributeValue, rejectIfEmptypublic static final String DB_DRIVER
public static final String DB_URL
public static final String DB_USER
public static final String DB_PASSWORD
public static final String DB_SCHEMA
public static final String DB_TABLE
public static final String DB_TABLE_KEY_COLUMN
public static final String DB_TABLE_VALUE_COLUMN
public Object processAnnotation(DBProperty dbPropertyAnnotation, Field field) throws AnnotationProcessingException
AnnotationProcessordbPropertyAnnotation - the annotation to process.field - the target fieldnull if the value should be ignoredAnnotationProcessingException - thrown if an exception occurs during annotation processingCopyright © 2020. All rights reserved.