Author: mattsicker
Date: Tue Jun 3 23:43:42 2014
New Revision: 1599838
URL: http://svn.apache.org/r1599838
Log:
Make name() optional to allow for defaulting to the class name.
Modified:
logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/Plugin.java
Modified:
logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/Plugin.java
URL:
http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/Plugin.java?rev=1599838&r1=1599837&r2=1599838&view=diff
==============================================================================
---
logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/Plugin.java
(original)
+++
logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/Plugin.java
Tue Jun 3 23:43:42 2014
@@ -31,15 +31,26 @@ import org.apache.logging.log4j.util.Str
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface Plugin {
-
+
/**
* Value of the elementType when none is specified.
*/
String EMPTY = Strings.EMPTY;
- String name();
+ /**
+ * Name of the plugin. If no name is specified, defaults to the simple
class name of the annotated element.
+ * Note that this name is case-insensitive.
+ */
+ String name() default EMPTY;
+
+ /**
+ * Category to place the plugin under. Category names are case-sensitive.
+ */
String category();
+
String elementType() default EMPTY;
+
boolean printObject() default false;
+
boolean deferChildren() default false;
}