Return-Path: X-Original-To: apmail-zest-commits-archive@minotaur.apache.org Delivered-To: apmail-zest-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 1623617DF3 for ; Tue, 29 Sep 2015 15:00:10 +0000 (UTC) Received: (qmail 12624 invoked by uid 500); 29 Sep 2015 15:00:10 -0000 Delivered-To: apmail-zest-commits-archive@zest.apache.org Received: (qmail 12605 invoked by uid 500); 29 Sep 2015 15:00:10 -0000 Mailing-List: contact commits-help@zest.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@zest.apache.org Delivered-To: mailing list commits@zest.apache.org Received: (qmail 12596 invoked by uid 99); 29 Sep 2015 15:00:09 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Sep 2015 15:00:09 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id BCA10DFC3B; Tue, 29 Sep 2015 15:00:09 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: paulmerlin@apache.org To: commits@zest.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: zest-java git commit: ZEST-127 Fix Servlets assembly DSL for 2.x style usage Date: Tue, 29 Sep 2015 15:00:09 +0000 (UTC) Repository: zest-java Updated Branches: refs/heads/develop 9c3c0dcbe -> 6b7650a91 ZEST-127 Fix Servlets assembly DSL for 2.x style usage Project: http://git-wip-us.apache.org/repos/asf/zest-java/repo Commit: http://git-wip-us.apache.org/repos/asf/zest-java/commit/6b7650a9 Tree: http://git-wip-us.apache.org/repos/asf/zest-java/tree/6b7650a9 Diff: http://git-wip-us.apache.org/repos/asf/zest-java/diff/6b7650a9 Branch: refs/heads/develop Commit: 6b7650a9127a91c871343dce728d54c8d03734b5 Parents: 9c3c0dc Author: Paul Merlin Authored: Tue Sep 29 16:59:54 2015 +0200 Committer: Paul Merlin Committed: Tue Sep 29 16:59:54 2015 +0200 ---------------------------------------------------------------------- .../org/apache/zest/library/http/Servlets.java | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/zest-java/blob/6b7650a9/libraries/http/src/main/java/org/apache/zest/library/http/Servlets.java ---------------------------------------------------------------------- diff --git a/libraries/http/src/main/java/org/apache/zest/library/http/Servlets.java b/libraries/http/src/main/java/org/apache/zest/library/http/Servlets.java index c161393..d97c75c 100644 --- a/libraries/http/src/main/java/org/apache/zest/library/http/Servlets.java +++ b/libraries/http/src/main/java/org/apache/zest/library/http/Servlets.java @@ -26,7 +26,6 @@ import javax.servlet.DispatcherType; import javax.servlet.Filter; import javax.servlet.Servlet; import javax.servlet.ServletContextListener; -import org.apache.zest.api.service.ServiceComposite; import org.apache.zest.bootstrap.AssemblyException; import org.apache.zest.bootstrap.ModuleAssembly; import org.apache.zest.library.http.ConstraintInfo.Constraint; @@ -77,17 +76,17 @@ public final class Servlets public static class ContextListenerDeclaration { - Class contextListener; + Class contextListener; Map initParams = Collections.emptyMap(); - public ContextListenerDeclaration with( Class contextListener ) + public ContextListenerDeclaration with( Class contextListener ) { this.contextListener = contextListener; return this; } - public Class contextListener() + public Class contextListener() { return contextListener; } @@ -142,7 +141,7 @@ public final class Servlets String path; - Class servlet; + Class servlet; Map initParams = Collections.emptyMap(); @@ -151,7 +150,7 @@ public final class Servlets this.path = path; } - public ServletDeclaration with( Class servlet ) + public ServletDeclaration with( Class servlet ) { this.servlet = servlet; return this; @@ -163,7 +162,7 @@ public final class Servlets return this; } - Class servlet() + Class servlet() { return servlet; } @@ -213,7 +212,7 @@ public final class Servlets String path; - Class filter; + Class filter; EnumSet dispatchers; @@ -224,7 +223,7 @@ public final class Servlets this.path = path; } - public FilterAssembler through( + public FilterAssembler through( Class filter ) { this.filter = filter; @@ -261,7 +260,7 @@ public final class Servlets return this; } - Class filter() + Class filter() { return filter; }