cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1411309 - in /cxf/trunk: pom.xml rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/spring/EndpointDefinitionParser.java
Date Mon, 19 Nov 2012 17:01:00 GMT
Author: dkulp
Date: Mon Nov 19 17:00:59 2012
New Revision: 1411309

URL: http://svn.apache.org/viewvc?rev=1411309&view=rev
Log:
[CXF-4640] If you reference the class directly anyway, you might as well just use that class
object.

Modified:
    cxf/trunk/pom.xml
    cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/spring/EndpointDefinitionParser.java

Modified: cxf/trunk/pom.xml
URL: http://svn.apache.org/viewvc/cxf/trunk/pom.xml?rev=1411309&r1=1411308&r2=1411309&view=diff
==============================================================================
--- cxf/trunk/pom.xml (original)
+++ cxf/trunk/pom.xml Mon Nov 19 17:00:59 2012
@@ -228,7 +228,7 @@
                         <plugin>
                             <groupId>org.apache.maven.plugins</groupId>
                             <artifactId>maven-compiler-plugin</artifactId>
-                            <version>2.5.1</version>
+                            <version>3.0</version>
                             <configuration>
                                 <source>${cxf.jdk.version}</source>
                                 <target>${cxf.jdk.version}</target>
@@ -529,7 +529,7 @@
                 <plugin>
                     <groupId>org.apache.maven.plugins</groupId>
                     <artifactId>maven-compiler-plugin</artifactId>
-                    <version>2.5.1</version>
+                    <version>3.0</version>
                     <configuration>
                         <source>1.6</source>
                         <target>1.6</target>

Modified: cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/spring/EndpointDefinitionParser.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/spring/EndpointDefinitionParser.java?rev=1411309&r1=1411308&r2=1411309&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/spring/EndpointDefinitionParser.java
(original)
+++ cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/spring/EndpointDefinitionParser.java
Mon Nov 19 17:00:59 2012
@@ -176,17 +176,11 @@ public class EndpointDefinitionParser ex
     }
     
     public static final void setBlocking(ApplicationContext ctx, EndpointImpl impl) {
-        Class<?> cls = null;
-        try {
-            cls = Class.forName(CommonAnnotationBeanPostProcessor.class.getName());
-        } catch (ClassNotFoundException e) {
-            //ignore
-        }
         AutowireCapableBeanFactory fact = ctx.getAutowireCapableBeanFactory();
         if (fact instanceof DefaultListableBeanFactory) {
             DefaultListableBeanFactory dlbf = (DefaultListableBeanFactory)fact;
             for (BeanPostProcessor bpp : dlbf.getBeanPostProcessors()) {
-                if (cls != null && cls.isInstance(bpp)) {
+                if (CommonAnnotationBeanPostProcessor.class.isInstance(bpp)) {
                     impl.getServerFactory().setBlockPostConstruct(true);
                     impl.getServerFactory().setBlockInjection(false);
                     return;



Mime
View raw message