Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Commit

Permalink
Swap in Annotation Processor Logger
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Bluhm <bluhmdj@ornl.gov>
  • Loading branch information
dbluhm committed Aug 3, 2020
1 parent 02d4b14 commit f55eb3c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions org.eclipse.ice.dev/org.eclipse.ice.dev.annotations/pom.xml
Expand Up @@ -102,6 +102,11 @@
<version>3.0.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.cosium.logging</groupId>
<artifactId>annotation-processor-logger</artifactId>
<version>1.0</version>
</dependency>
</dependencies>

<parent>
Expand Down
Expand Up @@ -10,7 +10,6 @@
import java.util.List;
import java.util.Set;

import javax.annotation.processing.AbstractProcessor;
import javax.annotation.processing.Messager;
import javax.annotation.processing.ProcessingEnvironment;
import javax.annotation.processing.Processor;
Expand All @@ -28,6 +27,7 @@
import org.eclipse.ice.dev.annotations.DataElement;
import org.eclipse.ice.dev.annotations.Persisted;

import com.cosium.logging.annotation_processor.AbstractLoggingProcessor;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.auto.service.AutoService;

Expand All @@ -46,7 +46,7 @@
})
@SupportedSourceVersion(SourceVersion.RELEASE_11)
@AutoService(Processor.class)
public class DataElementProcessor extends AbstractProcessor {
public class DataElementProcessor extends AbstractLoggingProcessor {
/**
* Return stack trace as string.
* @param e subject exception
Expand All @@ -73,7 +73,7 @@ public void init(final ProcessingEnvironment env) {
}

@Override
public boolean process(final Set<? extends TypeElement> annotations, final RoundEnvironment roundEnv) {
public boolean doProcess(final Set<? extends TypeElement> annotations, final RoundEnvironment roundEnv) {
// Iterate over all elements with DataElement Annotation
for (final Element elem : roundEnv.getElementsAnnotatedWith(DataElement.class)) {
try {
Expand Down

0 comments on commit f55eb3c

Please sign in to comment.