syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ilgro...@apache.org
Subject [1/5] syncope git commit: [SYNCOPE-612] White noise
Date Mon, 01 Dec 2014 12:54:05 GMT
Repository: syncope
Updated Branches:
  refs/heads/1_2_X f37a1bff9 -> 2c04c8ee0
  refs/heads/master ac606b3f0 -> 3080e978f


[SYNCOPE-612] White noise


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/96c857d4
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/96c857d4
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/96c857d4

Branch: refs/heads/1_2_X
Commit: 96c857d4ea25bd5818840f4163b392c48c3db4a0
Parents: f37a1bf
Author: Francesco Chicchiriccò <ilgrosso@apache.org>
Authored: Mon Dec 1 13:38:47 2014 +0100
Committer: Francesco Chicchiriccò <ilgrosso@apache.org>
Committed: Mon Dec 1 13:38:47 2014 +0100

----------------------------------------------------------------------
 .../core/util/VelocityEngineFactoryBean.java    | 30 +++++++++++---------
 1 file changed, 17 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/96c857d4/core/src/main/java/org/apache/syncope/core/util/VelocityEngineFactoryBean.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/syncope/core/util/VelocityEngineFactoryBean.java
b/core/src/main/java/org/apache/syncope/core/util/VelocityEngineFactoryBean.java
index f98f073..2aa96d5 100644
--- a/core/src/main/java/org/apache/syncope/core/util/VelocityEngineFactoryBean.java
+++ b/core/src/main/java/org/apache/syncope/core/util/VelocityEngineFactoryBean.java
@@ -37,8 +37,8 @@ public class VelocityEngineFactoryBean implements FactoryBean<VelocityEngine>,
I
 
     private ResourceLoader resourceLoader = new DefaultResourceLoader();
 
-	private boolean overrideLogging = true;
-    
+    private boolean overrideLogging = true;
+
     private VelocityEngine velocityEngine;
 
     public ResourceLoader getResourceLoader() {
@@ -50,15 +50,19 @@ public class VelocityEngineFactoryBean implements FactoryBean<VelocityEngine>,
I
     }
 
     public boolean isOverrideLogging() {
-		return overrideLogging;
-	}
+        return overrideLogging;
+    }
 
-    /** Configure Velocity to use Commons Logging (true by default). */
-	public void setOverrideLogging(boolean overrideLogging) {
-		this.overrideLogging = overrideLogging;
-	}
+    /**
+     * Configure Velocity to use Commons Logging (true by default).
+     *
+     * @param overrideLogging whether default Velocity logging should be overriden or not.
+     */
+    public void setOverrideLogging(final boolean overrideLogging) {
+        this.overrideLogging = overrideLogging;
+    }
 
-	private void createVelocityEngine() throws IOException, VelocityException {
+    private void createVelocityEngine() throws IOException, VelocityException {
         velocityEngine = new VelocityEngine();
 
         velocityEngine.setProperty(
@@ -70,10 +74,10 @@ public class VelocityEngineFactoryBean implements FactoryBean<VelocityEngine>,
I
                 SpringVelocityResourceLoader.SPRING_RESOURCE_LOADER_CACHE, "true");
         velocityEngine.setApplicationAttribute(
                 SpringVelocityResourceLoader.SPRING_RESOURCE_LOADER, getResourceLoader());
-        
-		if (this.overrideLogging) {
-			velocityEngine.setProperty(RuntimeConstants.RUNTIME_LOG_LOGSYSTEM, new CommonsLogLogChute());
-		}
+
+        if (this.overrideLogging) {
+            velocityEngine.setProperty(RuntimeConstants.RUNTIME_LOG_LOGSYSTEM, new CommonsLogLogChute());
+        }
 
         velocityEngine.init();
     }


Mime
View raw message