tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jlmonte...@apache.org
Subject [08/12] tomee git commit: Fixed multiple registrations of MPJWTFilter.
Date Fri, 07 Dec 2018 17:25:52 GMT
Fixed multiple registrations of MPJWTFilter.


Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/2691ad0a
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/2691ad0a
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/2691ad0a

Branch: refs/heads/master
Commit: 2691ad0a9d4c07fc0115b5593fe89efebc6b0088
Parents: 9fddfc0
Author: Roberto Cortez <radcortez@yahoo.com>
Authored: Mon Dec 3 22:40:57 2018 +0000
Committer: Roberto Cortez <radcortez@yahoo.com>
Committed: Tue Dec 4 11:16:27 2018 +0000

----------------------------------------------------------------------
 .../apache/tomee/microprofile/jwt/cdi/MPJWTCDIExtension.java  | 7 ++++++-
 .../src/main/resources/META-INF/org.apache.openejb.extension  | 1 -
 2 files changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/2691ad0a/mp-jwt/src/main/java/org/apache/tomee/microprofile/jwt/cdi/MPJWTCDIExtension.java
----------------------------------------------------------------------
diff --git a/mp-jwt/src/main/java/org/apache/tomee/microprofile/jwt/cdi/MPJWTCDIExtension.java
b/mp-jwt/src/main/java/org/apache/tomee/microprofile/jwt/cdi/MPJWTCDIExtension.java
index ca69b0a..f93fab4 100644
--- a/mp-jwt/src/main/java/org/apache/tomee/microprofile/jwt/cdi/MPJWTCDIExtension.java
+++ b/mp-jwt/src/main/java/org/apache/tomee/microprofile/jwt/cdi/MPJWTCDIExtension.java
@@ -16,8 +16,10 @@
  */
 package org.apache.tomee.microprofile.jwt.cdi;
 
+import org.apache.openejb.loader.SystemInstance;
 import org.apache.tomee.microprofile.jwt.MPJWTFilter;
 import org.apache.tomee.microprofile.jwt.MPJWTInitializer;
+import org.apache.tomee.microprofile.jwt.jaxrs.MPJWPProviderRegistration;
 import org.eclipse.microprofile.jwt.Claim;
 
 import javax.enterprise.event.Observes;
@@ -100,4 +102,7 @@ public class MPJWTCDIExtension implements Extension {
         bbd.addAnnotatedType(beanManager.createAnnotatedType(MPJWTProducer.class));
     }
 
-}
\ No newline at end of file
+    static {
+        SystemInstance.get().addObserver(new MPJWPProviderRegistration());
+    }
+}

http://git-wip-us.apache.org/repos/asf/tomee/blob/2691ad0a/mp-jwt/src/main/resources/META-INF/org.apache.openejb.extension
----------------------------------------------------------------------
diff --git a/mp-jwt/src/main/resources/META-INF/org.apache.openejb.extension b/mp-jwt/src/main/resources/META-INF/org.apache.openejb.extension
deleted file mode 100644
index 9734019..0000000
--- a/mp-jwt/src/main/resources/META-INF/org.apache.openejb.extension
+++ /dev/null
@@ -1 +0,0 @@
-org.apache.tomee.microprofile.jwt.jaxrs.MPJWPProviderRegistration
\ No newline at end of file


Mime
View raw message