Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 27974 invoked from network); 16 Sep 2006 12:36:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Sep 2006 12:36:14 -0000 Received: (qmail 41458 invoked by uid 500); 16 Sep 2006 12:36:13 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 41209 invoked by uid 500); 16 Sep 2006 12:36:12 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 41200 invoked by uid 99); 16 Sep 2006 12:36:11 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Sep 2006 05:36:11 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Sep 2006 05:36:11 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2625B41000C for ; Sat, 16 Sep 2006 12:32:23 +0000 (GMT) Message-ID: <20971576.1158409943126.JavaMail.jira@brutus> Date: Sat, 16 Sep 2006 05:32:23 -0700 (PDT) From: "Jukka Zitting (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Resolved: (JCR-565) Refactor ObservationManagerFactory In-Reply-To: <1886373.1157960002255.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/JCR-565?page=all ] Jukka Zitting resolved JCR-565. ------------------------------- Fix Version/s: 1.1 Resolution: Fixed Assignee: Jukka Zitting Suggested changes applied in revision 446866. > Refactor ObservationManagerFactory > ---------------------------------- > > Key: JCR-565 > URL: http://issues.apache.org/jira/browse/JCR-565 > Project: Jackrabbit > Issue Type: Improvement > Components: observation > Reporter: Jukka Zitting > Assigned To: Jukka Zitting > Priority: Minor > Fix For: 1.1 > > Attachments: dispatcher.patch > > > The current o.a.j.core.observation.ObservationManagerFactory class has two main responsibilities: > 1) Create new ObservationManagerImpl instances as an observation manager factory > 2) Manage event consumers and dispatch events within a workspace > These two responsibilities are quite unrelated and the factory responsibility essentially boils down to the following method that is only ever invoked within WorkspaceImpl.getObservationManager(): > public ObservationManagerImpl createObservationManager(SessionImpl session, ItemManager itemMgr) { > return new ObservationManagerImpl(this, session, itemMgr); > } > To simplify the design I'd inline this method and rename ObservationManagerFactory to ObservationDispatcher to better reflect the one remaining responsibility. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira