cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1492354 - in /cxf/branches/2.5.x-fixes: api/src/main/java/org/apache/cxf/annotations/GZIP.java rt/core/src/main/java/org/apache/cxf/service/factory/AnnotationsFactoryBeanListener.java
Date Wed, 12 Jun 2013 18:42:47 GMT
Author: dkulp
Date: Wed Jun 12 18:42:46 2013
New Revision: 1492354

URL: http://svn.apache.org/r1492354
Log:
Merged revisions 1492332 via  git cherry-pick from
https://svn.apache.org/repos/asf/cxf/branches/2.6.x-fixes

........
  r1492332 | dkulp | 2013-06-12 14:31:32 -0400 (Wed, 12 Jun 2013) | 18 lines

  Merged revisions 1492324 via  git cherry-pick from
  https://svn.apache.org/repos/asf/cxf/branches/2.7.x-fixes

  ........
    r1492324 | dkulp | 2013-06-12 14:24:13 -0400 (Wed, 12 Jun 2013) | 10 lines

    Merged revisions 1492290 via  git cherry-pick from
    https://svn.apache.org/repos/asf/cxf/trunk

    ........
      r1492290 | dkulp | 2013-06-12 13:11:04 -0400 (Wed, 12 Jun 2013) | 2 lines

      Add force setting to @GZIP annotation

    ........

  ........

........

Modified:
    cxf/branches/2.5.x-fixes/api/src/main/java/org/apache/cxf/annotations/GZIP.java
    cxf/branches/2.5.x-fixes/rt/core/src/main/java/org/apache/cxf/service/factory/AnnotationsFactoryBeanListener.java

Modified: cxf/branches/2.5.x-fixes/api/src/main/java/org/apache/cxf/annotations/GZIP.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/api/src/main/java/org/apache/cxf/annotations/GZIP.java?rev=1492354&r1=1492353&r2=1492354&view=diff
==============================================================================
--- cxf/branches/2.5.x-fixes/api/src/main/java/org/apache/cxf/annotations/GZIP.java (original)
+++ cxf/branches/2.5.x-fixes/api/src/main/java/org/apache/cxf/annotations/GZIP.java Wed Jun
12 18:42:46 2013
@@ -33,5 +33,6 @@ import java.lang.annotation.Target;
 @Target({ ElementType.TYPE })
 public @interface GZIP {
     int threshold() default -1;
+    boolean force() default false;
 }
 

Modified: cxf/branches/2.5.x-fixes/rt/core/src/main/java/org/apache/cxf/service/factory/AnnotationsFactoryBeanListener.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/rt/core/src/main/java/org/apache/cxf/service/factory/AnnotationsFactoryBeanListener.java?rev=1492354&r1=1492353&r2=1492354&view=diff
==============================================================================
--- cxf/branches/2.5.x-fixes/rt/core/src/main/java/org/apache/cxf/service/factory/AnnotationsFactoryBeanListener.java
(original)
+++ cxf/branches/2.5.x-fixes/rt/core/src/main/java/org/apache/cxf/service/factory/AnnotationsFactoryBeanListener.java
Wed Jun 12 18:42:46 2013
@@ -254,6 +254,8 @@ public class AnnotationsFactoryBeanListe
                 AbstractFeature feature = (AbstractFeature)cls.newInstance();
                 cls.getMethod("setThreshold", new Class[] {Integer.TYPE})
                     .invoke(feature, annotation.threshold());
+                cls.getMethod("setForce", new Class[] {Boolean.TYPE})
+                    .invoke(feature, annotation.force());
                 feature.initialize(ep, bus);
             } catch (Exception e) {
                 //ignore - just assume it's an unsupported/unknown annotation



Mime
View raw message