You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ma...@apache.org on 2014/09/14 07:01:21 UTC

[03/15] git commit: Add field support for @PluginValue.

Add field support for @PluginValue.

  - As with another annotation recently updated, this one is technically already supported by PluginBuilder.


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

Branch: refs/heads/master
Commit: c7e2c83423e0a4f7c37e0dc14ef41c1c58b8c73d
Parents: bcd4cba
Author: Matt Sicker <ma...@apache.org>
Authored: Sat Sep 13 16:10:47 2014 -0500
Committer: Matt Sicker <ma...@apache.org>
Committed: Sat Sep 13 16:10:47 2014 -0500

----------------------------------------------------------------------
 .../org/apache/logging/log4j/core/config/plugins/PluginValue.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/c7e2c834/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/PluginValue.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/PluginValue.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/PluginValue.java
index 521de5e..9c20cc2 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/PluginValue.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/PluginValue.java
@@ -32,7 +32,7 @@ import org.apache.logging.log4j.core.config.plugins.visitors.PluginValueVisitor;
  */
 @Documented
 @Retention(RetentionPolicy.RUNTIME)
-@Target(ElementType.PARAMETER)
+@Target({ElementType.PARAMETER, ElementType.FIELD})
 @PluginVisitorStrategy(PluginValueVisitor.class)
 public @interface PluginValue {