Repository: logging-log4j2
Updated Branches:
  refs/heads/master a39420ae8 -> 0a592aa12


[LOG4J2-1695] Add a Builder to ScriptPatternSelector and deprecate
ScriptPatternSelector.createSelector(). Adjust Javadocs and imports.

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/afb46adb
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/afb46adb
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/afb46adb

Branch: refs/heads/master
Commit: afb46adb2a9a43efef663c3987055e3cf2c54955
Parents: a39420a
Author: Gary Gregory <[email protected]>
Authored: Fri Nov 11 16:20:32 2016 -0800
Committer: Gary Gregory <[email protected]>
Committed: Fri Nov 11 16:20:32 2016 -0800

----------------------------------------------------------------------
 .../log4j/core/layout/ScriptPatternSelector.java     | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/afb46adb/log4j-core/src/main/java/org/apache/logging/log4j/core/layout/ScriptPatternSelector.java
----------------------------------------------------------------------
diff --git 
a/log4j-core/src/main/java/org/apache/logging/log4j/core/layout/ScriptPatternSelector.java
 
b/log4j-core/src/main/java/org/apache/logging/log4j/core/layout/ScriptPatternSelector.java
index 29d02f3..99c6163 100644
--- 
a/log4j-core/src/main/java/org/apache/logging/log4j/core/layout/ScriptPatternSelector.java
+++ 
b/log4j-core/src/main/java/org/apache/logging/log4j/core/layout/ScriptPatternSelector.java
@@ -16,6 +16,12 @@
  */
 package org.apache.logging.log4j.core.layout;
 
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import javax.script.SimpleBindings;
+
 import org.apache.logging.log4j.Logger;
 import org.apache.logging.log4j.core.LogEvent;
 import org.apache.logging.log4j.core.config.Configuration;
@@ -26,19 +32,12 @@ import 
org.apache.logging.log4j.core.config.plugins.PluginBuilderAttribute;
 import org.apache.logging.log4j.core.config.plugins.PluginBuilderFactory;
 import org.apache.logging.log4j.core.config.plugins.PluginConfiguration;
 import org.apache.logging.log4j.core.config.plugins.PluginElement;
-import org.apache.logging.log4j.core.config.plugins.PluginFactory;
-import org.apache.logging.log4j.core.layout.PatternLayout.Builder;
 import org.apache.logging.log4j.core.pattern.PatternFormatter;
 import org.apache.logging.log4j.core.pattern.PatternParser;
 import org.apache.logging.log4j.core.script.AbstractScript;
 import org.apache.logging.log4j.core.script.ScriptRef;
 import org.apache.logging.log4j.status.StatusLogger;
 
-import javax.script.SimpleBindings;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
 /**
  * Selects the pattern to use based on the Marker in the LogEvent.
  */
@@ -46,7 +45,7 @@ import java.util.Map;
 public class ScriptPatternSelector implements PatternSelector {
 
     /**
-     * Custom PatternLayout builder. Use the {@link PatternLayout#newBuilder() 
builder factory method} to create this.
+     * Custom ScriptPatternSelector builder. Use the {@link 
ScriptPatternSelector#newBuilder() builder factory method} to create this.
      */
     public static class Builder implements 
org.apache.logging.log4j.core.util.Builder<ScriptPatternSelector> {
 

Reply via email to