From 3bd45ace2bfd7e92e744b958ec05cf89dfe602f4 Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Thu, 9 Oct 2014 13:41:46 +0200 Subject: Verifier SPI changes --- pdf-as-lib/src/main/java/META-INF/MANIFEST.MF | 3 --- .../java/META-INF/services/at.gv.egiz.pdfas.lib.impl.verify.IVerifier | 1 - .../main/java/at/gv/egiz/pdfas/lib/impl/verify/VerifierDispatcher.java | 2 ++ pdf-as-lib/src/main/resources/META-INF/MANIFEST.MF | 3 +++ .../META-INF/services/at.gv.egiz.pdfas.lib.impl.verify.IVerifier | 1 + 5 files changed, 6 insertions(+), 4 deletions(-) delete mode 100644 pdf-as-lib/src/main/java/META-INF/MANIFEST.MF delete mode 100644 pdf-as-lib/src/main/java/META-INF/services/at.gv.egiz.pdfas.lib.impl.verify.IVerifier create mode 100644 pdf-as-lib/src/main/resources/META-INF/MANIFEST.MF create mode 100644 pdf-as-lib/src/main/resources/META-INF/services/at.gv.egiz.pdfas.lib.impl.verify.IVerifier (limited to 'pdf-as-lib/src/main') diff --git a/pdf-as-lib/src/main/java/META-INF/MANIFEST.MF b/pdf-as-lib/src/main/java/META-INF/MANIFEST.MF deleted file mode 100644 index 5e949512..00000000 --- a/pdf-as-lib/src/main/java/META-INF/MANIFEST.MF +++ /dev/null @@ -1,3 +0,0 @@ -Manifest-Version: 1.0 -Class-Path: - diff --git a/pdf-as-lib/src/main/java/META-INF/services/at.gv.egiz.pdfas.lib.impl.verify.IVerifier b/pdf-as-lib/src/main/java/META-INF/services/at.gv.egiz.pdfas.lib.impl.verify.IVerifier deleted file mode 100644 index bd8d2b22..00000000 --- a/pdf-as-lib/src/main/java/META-INF/services/at.gv.egiz.pdfas.lib.impl.verify.IVerifier +++ /dev/null @@ -1 +0,0 @@ -at.gv.egiz.pdfas.lib.impl.verify.IntegrityVerifier #Integrity Only Verifier \ No newline at end of file diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/verify/VerifierDispatcher.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/verify/VerifierDispatcher.java index 56ac41a6..ce7b4707 100644 --- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/verify/VerifierDispatcher.java +++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/verify/VerifierDispatcher.java @@ -64,6 +64,8 @@ public class VerifierDispatcher { verifiers.add(verfier); } + verifiers.add(new IntegrityVerifier()); + for (IVerifier verfier : verifiers) { logger.info("Registered Verifier: " + verfier.getClass().getName()); } diff --git a/pdf-as-lib/src/main/resources/META-INF/MANIFEST.MF b/pdf-as-lib/src/main/resources/META-INF/MANIFEST.MF new file mode 100644 index 00000000..5e949512 --- /dev/null +++ b/pdf-as-lib/src/main/resources/META-INF/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Class-Path: + diff --git a/pdf-as-lib/src/main/resources/META-INF/services/at.gv.egiz.pdfas.lib.impl.verify.IVerifier b/pdf-as-lib/src/main/resources/META-INF/services/at.gv.egiz.pdfas.lib.impl.verify.IVerifier new file mode 100644 index 00000000..bd8d2b22 --- /dev/null +++ b/pdf-as-lib/src/main/resources/META-INF/services/at.gv.egiz.pdfas.lib.impl.verify.IVerifier @@ -0,0 +1 @@ +at.gv.egiz.pdfas.lib.impl.verify.IntegrityVerifier #Integrity Only Verifier \ No newline at end of file -- cgit v1.2.3