Return-Path: X-Original-To: apmail-logging-commits-archive@minotaur.apache.org Delivered-To: apmail-logging-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DFC4D11C6C for ; Tue, 3 Jun 2014 23:44:05 +0000 (UTC) Received: (qmail 24255 invoked by uid 500); 3 Jun 2014 23:44:05 -0000 Delivered-To: apmail-logging-commits-archive@logging.apache.org Received: (qmail 24226 invoked by uid 500); 3 Jun 2014 23:44:05 -0000 Mailing-List: contact commits-help@logging.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@logging.apache.org Delivered-To: mailing list commits@logging.apache.org Received: (qmail 24219 invoked by uid 99); 3 Jun 2014 23:44:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jun 2014 23:44:05 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jun 2014 23:44:06 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id A4AFE238890D; Tue, 3 Jun 2014 23:43:42 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1599838 - /logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/Plugin.java Date: Tue, 03 Jun 2014 23:43:42 -0000 To: commits@logging.apache.org From: mattsicker@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20140603234342.A4AFE238890D@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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; }