Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3D7FFD4C9 for ; Tue, 27 Nov 2012 10:25:42 +0000 (UTC) Received: (qmail 35190 invoked by uid 500); 27 Nov 2012 10:25:41 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 34891 invoked by uid 500); 27 Nov 2012 10:25:40 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 34848 invoked by uid 99); 27 Nov 2012 10:25:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Nov 2012 10:25:38 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of knst.kolinko@gmail.com designates 209.85.212.45 as permitted sender) Received: from [209.85.212.45] (HELO mail-vb0-f45.google.com) (209.85.212.45) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Nov 2012 10:25:32 +0000 Received: by mail-vb0-f45.google.com with SMTP id p1so16533566vbi.18 for ; Tue, 27 Nov 2012 02:25:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=H7qbpg7lBBlKcWtHmjowpd0xHlcbooSS6mdCxYUJGvI=; b=n3XRReORzYZw2vv87EepROzd79HdI0ePrwKqfGbIRJFmqjCG/2TVyvDcEbHF6Y2xDz l4SEIJWKLSKvfACaFSkhJWm5+H7P6KLxQ3/xTIiZP1s6cqM+3906b0oQAvzGyHrNPAEE X6MqleOi0fmHAmsI4IgBUbH423/71u2dU9oVQX9n4v2nG3X7AMRCNa5xDnXtaGn3HmA+ TTKTKtTsq/X4moy/7Bzg0KIzC92IXVIDdzolEE0fo776UF0G5t5jGT0rbmXQQ2a8xjU1 qPXGs5vTkcB1otcXsqSGXmu92tHeRLH7AfSpPtcWc4hHY5VlosPQtXoFgSpawIyvotTz KLyg== MIME-Version: 1.0 Received: by 10.52.26.242 with SMTP id o18mr21056369vdg.90.1354011911354; Tue, 27 Nov 2012 02:25:11 -0800 (PST) Received: by 10.58.249.199 with HTTP; Tue, 27 Nov 2012 02:25:11 -0800 (PST) In-Reply-To: <20121127100644.681A923888E4@eris.apache.org> References: <20121127100644.681A923888E4@eris.apache.org> Date: Tue, 27 Nov 2012 14:25:11 +0400 Message-ID: Subject: Re: svn commit: r1414053 - /tomcat/trunk/java/javax/servlet/ServletContainerInitializer.java From: Konstantin Kolinko To: Tomcat Developers List Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org 2012/11/27 : > Author: markt > Date: Tue Nov 27 10:06:42 2012 > New Revision: 1414053 > > URL: http://svn.apache.org/viewvc?rev=1414053&view=rev > Log: > Populate the SCI Javadoc > > Modified: > tomcat/trunk/java/javax/servlet/ServletContainerInitializer.java > > Modified: tomcat/trunk/java/javax/servlet/ServletContainerInitializer.java > URL: http://svn.apache.org/viewvc/tomcat/trunk/java/javax/servlet/ServletContainerInitializer.java?rev=1414053&r1=1414052&r2=1414053&view=diff > ============================================================================== > --- tomcat/trunk/java/javax/servlet/ServletContainerInitializer.java (original) > +++ tomcat/trunk/java/javax/servlet/ServletContainerInitializer.java Tue Nov 27 10:06:42 2012 > @@ -19,18 +19,35 @@ package javax.servlet; > import java.util.Set; > > /** > + * ServletContainerInitializers (SCIs) are registered via an entry in the > + * file META-INF/services/javax.servlet.ServletContainerInitializer that must be > + * included in the JAR file that contains the SCI implementation. > + *

> + * SCIs processing is performed regardless of the setting of metadata-complete. > + * SCI processing can be controlled be JAR file via fragment ordering. If an I do not understand the second "be" in the above line. > + * absolute ordering is defined, the only those fragments included in the > + * ordering will be scanned. To disable SCI processing completely, an empty > + * absolute ordering may be defined. > + *

> + * SCIs register an interest in annotations (class, method or field) or types > + * via the {@link javax.servlet.HandlesTypes} annotation which is > + * added to the {@link #onStartup(Set, ServletContext)} method. I read it that one needs to add @HandlesTypes to the onStartup() method. I have not used this feature yet, but in our WsSci class the annotation is placed on the class as a whole, not on that particular method. http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/websocket/WsSci.java?view=markup > + * > * @since Servlet 3.0 > */ > public interface ServletContainerInitializer { Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org