openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1859085 - in /openwebbeans/meecrowave/trunk: meecrowave-core/src/main/java/org/apache/meecrowave/cxf/MeecrowaveBus.java pom.xml
Date Fri, 10 May 2019 16:07:48 GMT
Author: rmannibucau
Date: Fri May 10 16:07:48 2019
New Revision: 1859085

URL: http://svn.apache.org/viewvc?rev=1859085&view=rev
Log:
MEECROWAVE-191 cxf 3.3.2

Modified:
    openwebbeans/meecrowave/trunk/meecrowave-core/src/main/java/org/apache/meecrowave/cxf/MeecrowaveBus.java
    openwebbeans/meecrowave/trunk/pom.xml

Modified: openwebbeans/meecrowave/trunk/meecrowave-core/src/main/java/org/apache/meecrowave/cxf/MeecrowaveBus.java
URL: http://svn.apache.org/viewvc/openwebbeans/meecrowave/trunk/meecrowave-core/src/main/java/org/apache/meecrowave/cxf/MeecrowaveBus.java?rev=1859085&r1=1859084&r2=1859085&view=diff
==============================================================================
--- openwebbeans/meecrowave/trunk/meecrowave-core/src/main/java/org/apache/meecrowave/cxf/MeecrowaveBus.java
(original)
+++ openwebbeans/meecrowave/trunk/meecrowave-core/src/main/java/org/apache/meecrowave/cxf/MeecrowaveBus.java
Fri May 10 16:07:48 2019
@@ -23,6 +23,7 @@ import java.util.List;
 import java.util.Map;
 
 import javax.enterprise.context.ApplicationScoped;
+import javax.enterprise.inject.Typed;
 import javax.inject.Inject;
 import javax.inject.Named;
 import javax.servlet.ServletContext;
@@ -35,8 +36,9 @@ import org.apache.cxf.message.Message;
 import org.apache.meecrowave.Meecrowave;
 
 @Named("cxf")
+@Typed({MeecrowaveBus.class, Bus.class})
 @ApplicationScoped
-public class MeecrowaveBus implements Bus {
+public class MeecrowaveBus implements Bus, ClassUnwrapper {
     private final ConfigurableBus delegate = new ConfigurableBus();
 
     protected MeecrowaveBus() {
@@ -45,7 +47,7 @@ public class MeecrowaveBus implements Bu
 
     @Inject
     public MeecrowaveBus(final ServletContext context) {
-        setProperty(ClassUnwrapper.class.getName(), (ClassUnwrapper) this::getRealClass);
+        setProperty(ClassUnwrapper.class.getName(), this);
 
         final ClassLoader appLoader = context.getClassLoader();
         setExtension(appLoader, ClassLoader.class); // ServletController locks on the classloader
otherwise
@@ -60,11 +62,16 @@ public class MeecrowaveBus implements Bu
     /**
      * Unwrap all proxies and get the real underlying class
      * for detecting annotations, etc.
-     * @param o
-     * @return
+     * @param o the instance to analyze.
+     * @return the class to introspect.
      */
-    protected Class<?> getRealClass(Object o) {
-        final Class<?> aClass = o.getClass();
+    @Override
+    public Class<?> getRealClass(Object o) {
+        return getRealClassFromClass(o.getClass());
+    }
+
+    @Override
+    public Class<?> getRealClassFromClass(final Class<?> aClass) {
         if (aClass.getName().contains("$$")) {
             Class realClass = aClass.getSuperclass();
             if (realClass == Object.class || realClass.isInterface()) {

Modified: openwebbeans/meecrowave/trunk/pom.xml
URL: http://svn.apache.org/viewvc/openwebbeans/meecrowave/trunk/pom.xml?rev=1859085&r1=1859084&r2=1859085&view=diff
==============================================================================
--- openwebbeans/meecrowave/trunk/pom.xml (original)
+++ openwebbeans/meecrowave/trunk/pom.xml Fri May 10 16:07:48 2019
@@ -52,7 +52,7 @@
     <junit.version>4.12</junit.version>
     <tomcat.version>9.0.19</tomcat.version>
     <openwebbeans.version>2.0.10</openwebbeans.version>
-    <cxf.version>3.3.1</cxf.version>
+    <cxf.version>3.3.2</cxf.version>
     <johnzon.version>1.1.10</johnzon.version>
     <log4j2.version>2.11.1</log4j2.version>
     <deltaspike.version>1.8.2</deltaspike.version>
@@ -217,8 +217,8 @@
     </profile>
   </profiles>
 
-<!-- only needed when under development
   <repositories>
+<!-- only needed when under development
     <repository>
       <id>asf-snapshot</id>
       <url>https://repository.apache.org/content/repositories/snapshots/</url>
@@ -229,6 +229,16 @@
         <enabled>true</enabled>
       </snapshots>
     </repository>
-  </repositories>
 -->
+    <repository>
+      <id>cxf-staging</id>
+      <url>https://repository.apache.org/content/repositories/orgapachecxf-1141/</url>
+      <releases>
+        <enabled>true</enabled>
+      </releases>
+      <snapshots>
+        <enabled>false</enabled>
+      </snapshots>
+    </repository>
+  </repositories>
 </project>



Mime
View raw message