Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C43F3200D5B for ; Tue, 7 Nov 2017 10:13:06 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id C26A3160C0D; Tue, 7 Nov 2017 09:13:06 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 11DB8160C00 for ; Tue, 7 Nov 2017 10:13:05 +0100 (CET) Received: (qmail 81707 invoked by uid 500); 7 Nov 2017 09:13:04 -0000 Mailing-List: contact commits-help@sling.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sling.apache.org Delivered-To: mailing list commits@sling.apache.org Received: (qmail 81077 invoked by uid 99); 7 Nov 2017 09:13:04 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Nov 2017 09:13:04 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id DC39784C58; Tue, 7 Nov 2017 09:13:03 +0000 (UTC) Date: Tue, 07 Nov 2017 09:13:29 +0000 To: "commits@sling.apache.org" Subject: [sling-bundle-archetype] 15/19: SLING-3539 - SimpleDSComponent from archetypes does nothing by default MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit From: rombert@apache.org In-Reply-To: <151004598281.16989.15888660984193197730@gitbox.apache.org> References: <151004598281.16989.15888660984193197730@gitbox.apache.org> X-Git-Host: gitbox.apache.org X-Git-Repo: sling-bundle-archetype X-Git-Refname: refs/tags/sling-bundle-archetype-1.0.2 X-Git-Reftype: annotated tag X-Git-Rev: db9991545e2797d7c4fb23429c17460aa52aa67b X-Git-NotificationType: diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated Message-Id: <20171107091303.DC39784C58@gitbox.apache.org> archived-at: Tue, 07 Nov 2017 09:13:07 -0000 This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to annotated tag sling-bundle-archetype-1.0.2 in repository https://gitbox.apache.org/repos/asf/sling-bundle-archetype.git commit db9991545e2797d7c4fb23429c17460aa52aa67b Author: Robert Munteanu AuthorDate: Fri May 2 10:55:09 2014 +0000 SLING-3539 - SimpleDSComponent from archetypes does nothing by default git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/tooling/maven/archetypes/bundle@1591865 13f79535-47bb-0310-9956-ffa450edef68 --- .../archetype-resources/src/main/java/SimpleDSComponent.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/resources/archetype-resources/src/main/java/SimpleDSComponent.java b/src/main/resources/archetype-resources/src/main/java/SimpleDSComponent.java index 22a4ce0..64fe8eb 100644 --- a/src/main/resources/archetype-resources/src/main/java/SimpleDSComponent.java +++ b/src/main/resources/archetype-resources/src/main/java/SimpleDSComponent.java @@ -20,6 +20,7 @@ package ${package}; import org.apache.felix.scr.annotations.Component; +import org.apache.felix.scr.annotations.Property; import org.apache.felix.scr.annotations.Service; import org.osgi.framework.BundleContext; @@ -28,10 +29,13 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** - * Just a simple DS Component + * A simple DS component which is executed every 10 seconds + * + * @see Scheduler Service */ @Component(metatype=true) @Service +@Property( name="scheduler.period", longValue = 10) public class SimpleDSComponent implements Runnable { private Logger logger = LoggerFactory.getLogger(this.getClass()); -- To stop receiving notification emails like this one, please contact "commits@sling.apache.org" .