tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hls...@apache.org
Subject svn commit: r1087497 - in /tapestry/tapestry5/trunk/tapestry-yuicompressor/src/main/java/org/apache/tapestry5: internal/yuicompressor/JSCompressor.java internal/yuicompressor/JavaScriptResourceMinimizer.java yuicompressor/services/YuiCompressorModule.java
Date Thu, 31 Mar 2011 23:16:12 GMT
Author: hlship
Date: Thu Mar 31 23:16:12 2011
New Revision: 1087497

URL: http://svn.apache.org/viewvc?rev=1087497&view=rev
Log:
TAP5073: Rename the JavaScript ResourceMinimizer implementation

Added:
    tapestry/tapestry5/trunk/tapestry-yuicompressor/src/main/java/org/apache/tapestry5/internal/yuicompressor/JavaScriptResourceMinimizer.java
      - copied, changed from r1087496, tapestry/tapestry5/trunk/tapestry-yuicompressor/src/main/java/org/apache/tapestry5/internal/yuicompressor/JSCompressor.java
Removed:
    tapestry/tapestry5/trunk/tapestry-yuicompressor/src/main/java/org/apache/tapestry5/internal/yuicompressor/JSCompressor.java
Modified:
    tapestry/tapestry5/trunk/tapestry-yuicompressor/src/main/java/org/apache/tapestry5/yuicompressor/services/YuiCompressorModule.java

Copied: tapestry/tapestry5/trunk/tapestry-yuicompressor/src/main/java/org/apache/tapestry5/internal/yuicompressor/JavaScriptResourceMinimizer.java
(from r1087496, tapestry/tapestry5/trunk/tapestry-yuicompressor/src/main/java/org/apache/tapestry5/internal/yuicompressor/JSCompressor.java)
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-yuicompressor/src/main/java/org/apache/tapestry5/internal/yuicompressor/JavaScriptResourceMinimizer.java?p2=tapestry/tapestry5/trunk/tapestry-yuicompressor/src/main/java/org/apache/tapestry5/internal/yuicompressor/JavaScriptResourceMinimizer.java&p1=tapestry/tapestry5/trunk/tapestry-yuicompressor/src/main/java/org/apache/tapestry5/internal/yuicompressor/JSCompressor.java&r1=1087496&r2=1087497&rev=1087497&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-yuicompressor/src/main/java/org/apache/tapestry5/internal/yuicompressor/JSCompressor.java
(original)
+++ tapestry/tapestry5/trunk/tapestry-yuicompressor/src/main/java/org/apache/tapestry5/internal/yuicompressor/JavaScriptResourceMinimizer.java
Thu Mar 31 23:16:12 2011
@@ -38,9 +38,9 @@ import org.slf4j.Logger;
 import com.yahoo.platform.yui.compressor.JavaScriptCompressor;
 
 /**
- * JavaScript resource compressor based on the YUI {@link JavaScriptCompressor}.
+ * JavaScript resource minimizer based on the YUI {@link JavaScriptCompressor}.
  */
-public class JSCompressor implements ResourceMinimizer
+public class JavaScriptResourceMinimizer implements ResourceMinimizer
 {
     private static final double NANOS_TO_MILLIS = 1.0d / 1000000.0d;
 
@@ -48,7 +48,7 @@ public class JSCompressor implements Res
 
     private final OperationTracker tracker;
 
-    public JSCompressor(Logger logger, OperationTracker tracker)
+    public JavaScriptResourceMinimizer(Logger logger, OperationTracker tracker)
     {
         this.logger = logger;
         this.tracker = tracker;

Modified: tapestry/tapestry5/trunk/tapestry-yuicompressor/src/main/java/org/apache/tapestry5/yuicompressor/services/YuiCompressorModule.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-yuicompressor/src/main/java/org/apache/tapestry5/yuicompressor/services/YuiCompressorModule.java?rev=1087497&r1=1087496&r2=1087497&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-yuicompressor/src/main/java/org/apache/tapestry5/yuicompressor/services/YuiCompressorModule.java
(original)
+++ tapestry/tapestry5/trunk/tapestry-yuicompressor/src/main/java/org/apache/tapestry5/yuicompressor/services/YuiCompressorModule.java
Thu Mar 31 23:16:12 2011
@@ -14,7 +14,7 @@
 
 package org.apache.tapestry5.yuicompressor.services;
 
-import org.apache.tapestry5.internal.yuicompressor.JSCompressor;
+import org.apache.tapestry5.internal.yuicompressor.JavaScriptResourceMinimizer;
 import org.apache.tapestry5.ioc.MappedConfiguration;
 import org.apache.tapestry5.ioc.annotations.Contribute;
 import org.apache.tapestry5.ioc.annotations.Primary;
@@ -33,6 +33,6 @@ public class YuiCompressorModule
     @Primary
     public static void setupJavaScriptMinimizer(MappedConfiguration<String, ResourceMinimizer>
configuration)
     {
-        configuration.addInstance("text/javascript", JSCompressor.class);
+        configuration.addInstance("text/javascript", JavaScriptResourceMinimizer.class);
     }
 }



Mime
View raw message