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 23E4F200BE8 for ; Fri, 23 Dec 2016 21:13:36 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 227D9160B1F; Fri, 23 Dec 2016 20:13:36 +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 6B342160B0C for ; Fri, 23 Dec 2016 21:13:35 +0100 (CET) Received: (qmail 78144 invoked by uid 500); 23 Dec 2016 20:13:33 -0000 Mailing-List: contact users-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@directory.apache.org Delivered-To: mailing list users@directory.apache.org Received: (qmail 77654 invoked by uid 99); 23 Dec 2016 20:13:33 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Dec 2016 20:13:33 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id BB8231A015E for ; Fri, 23 Dec 2016 20:13:32 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -3.82 X-Spam-Level: X-Spam-Status: No, score=-3.82 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=me.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id C8n035ouNWzv for ; Fri, 23 Dec 2016 20:13:31 +0000 (UTC) Received: from st14p37im-asmtp003.me.com (st14p37im-asmtp003.me.com [17.41.209.32]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 4AD705FD9A for ; Fri, 23 Dec 2016 20:13:31 +0000 (UTC) Received: from process-dkim-sign-daemon.st14p37im-asmtp003.me.com by st14p37im-asmtp003.me.com (Oracle Communications Messaging Server 7.0.5.38.0 64bit (built Feb 26 2016)) id <0OIN00E00M4F0M00@st14p37im-asmtp003.me.com> for users@directory.apache.org; Fri, 23 Dec 2016 20:13:18 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=4d515a; t=1482523998; bh=MhAlHbjOYLPiznWo7SXNCQlM1LweYHgBNZxXYuGa1mw=; h=From:Content-type:MIME-version:Subject:Message-id:Date:To; b=dsYGbKG8hkvc/1QVycLWzGexo21vGVi+xOAffBnRCAaHOjLN1uH7UaX3jqYO2hA6H +WL1K3B9CpFgtxFa/DvXPBsIXTC/LDT2UrCc9zYzXvt0pR33AkUPf/mz65L81B4+lJ skiu6TKIYxms7zyZ0gsheYNZgFSw7g7z9W+QamBTJbAjyJQhAkmAwPbI9evO9gkTWz yBrBbWWer+1GPTCUzFXePr3PiC6A0yp786TIk8uBbc4vWW3R5hR+OZBJKWXXyiWPt2 1ukR1zcj6E8Fwv+nD4Qz5gSrW4Gjhm/XGh9U/NBMjnirFvIW/C05BDaLVu/sQAyT4e 1MdolqOM4GufQ== Received: from [192.168.0.50] (unknown [47.148.29.84]) by st14p37im-asmtp003.me.com (Oracle Communications Messaging Server 7.0.5.38.0 64bit (built Feb 26 2016)) with ESMTPSA id <0OIN00GTKMU5AJ30@st14p37im-asmtp003.me.com> for users@directory.apache.org; Fri, 23 Dec 2016 20:13:18 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-12-23_16:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 clxscore=1034 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1603290000 definitions=main-1612230326 From: "Andreas Schaefer Sr." Content-type: text/plain; charset=us-ascii Content-transfer-encoding: quoted-printable MIME-version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Dynamic Resource Change Listener Message-id: <05307B11-D262-4620-90ED-ED6B50FAC9AD@me.com> Date: Fri, 23 Dec 2016 12:13:16 -0800 Cc: Andreas Schaefer To: users@directory.apache.org X-Mailer: Apple Mail (2.3259) archived-at: Fri, 23 Dec 2016 20:13:36 -0000 Hi I would like to listen to JCR Nodes being added, modified and removed in = Sling and saw that you provide the Resource Change Listener which would = work perfectly but I could not figure out how to make the paths to = listen for dynamic. What I would love to have is to configure an OSGi Service that either = implements ResourceChangeListener or does register one with Sling. The = paths to listen for are set by the OSGi Configuration and the user can = add, change or remove paths. Is there a way to create a Resource Change Listener(s) dynamically so = that when I receive the configuration (changes) I can register them = rather when the Resource Change Listener service is deployed? Thanks - Andy Schaefer=