Return-Path: X-Original-To: apmail-logging-log4j-dev-archive@www.apache.org Delivered-To: apmail-logging-log4j-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 ECF4811258 for ; Sat, 13 Sep 2014 20:46:20 +0000 (UTC) Received: (qmail 216 invoked by uid 500); 13 Sep 2014 20:46:20 -0000 Delivered-To: apmail-logging-log4j-dev-archive@logging.apache.org Received: (qmail 154 invoked by uid 500); 13 Sep 2014 20:46:20 -0000 Mailing-List: contact log4j-dev-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Developers List" Reply-To: "Log4J Developers List" Delivered-To: mailing list log4j-dev@logging.apache.org Received: (qmail 144 invoked by uid 99); 13 Sep 2014 20:46:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Sep 2014 20:46:20 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of boards@gmail.com designates 209.85.219.47 as permitted sender) Received: from [209.85.219.47] (HELO mail-oa0-f47.google.com) (209.85.219.47) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Sep 2014 20:45:54 +0000 Received: by mail-oa0-f47.google.com with SMTP id n16so1531090oag.6 for ; Sat, 13 Sep 2014 13:45:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=bDIW8n9ujkrm0QLERXIuJC2dMMsFNrWBM09Fay2Pvfo=; b=XA+8gXAd2iCgdsrw9pAdVFKtB04VyxTh6N1QFLPf8xvVsz3x/Eva2YvbSThBaiy6+e RSY/i+N1ia4erO6GEts+WHizBGc0/v/tj9JukiRGrFgFNNO1D0UI0d3h+WB8ugvsUu1O Aidg7sUjmgYGw81+xPptn0/Dlc753ZMeehOpykQC8SXutV1ovQFLLASMy/H1bDJN6E1Q vRbQ1ukyV05SXdzkiOuXqbABlYgpmKBuXDx0NwYkyxsujl9dj2oSep+Hhf4Nn+8ppTmR tfX/qzecPoGrpi5FrUGhOXUCAD7S5ir02rXbWwU+EW6Tr7HtMSteztG36omxsBAGgYwn +QBg== MIME-Version: 1.0 X-Received: by 10.202.181.7 with SMTP id e7mr166320oif.72.1410641153120; Sat, 13 Sep 2014 13:45:53 -0700 (PDT) Received: by 10.76.84.39 with HTTP; Sat, 13 Sep 2014 13:45:53 -0700 (PDT) Date: Sat, 13 Sep 2014 15:45:53 -0500 Message-ID: Subject: Would anyone be against simply copying the lifecycle standards from OSGi? From: Matt Sicker To: Log4J Developers List Content-Type: multipart/alternative; boundary=001a113ce460d6601e0502f87c8b X-Virus-Checked: Checked by ClamAV on apache.org --001a113ce460d6601e0502f87c8b Content-Type: text/plain; charset=UTF-8 They're the most flexible. Quick overview of the life cycle in OSGi: installed -> resolved -> (starting) -> active -> (stopping) resolved -> uninstalled Installed is the initial state. Resolved is when all its dependencies have been fulfilled. During the starting state, if there is an error, then it goes back to resolved. Active for while it's, well, active. Stopping puts the thing back into resolved. Then, if you go from resolved to uninstalled, this means that it's no longer available for use (and the only reason you'd find something in this state for very long is due to a memory leak). Any objections? This would make our LifeCycle interface more compatible with OSGi while providing a well-understood standard for the life cycle of plugin-type objects. -- Matt Sicker --001a113ce460d6601e0502f87c8b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
They're the most flexible. Quick overview of= the life cycle in OSGi:

installed -> resolved -> (start= ing) -> active -> (stopping) resolved -> uninstalled

Instal= led is the initial state. Resolved is when all its dependencies have been f= ulfilled. During the starting state, if there is an error, then it goes bac= k to resolved. Active for while it's, well, active. Stopping puts the t= hing back into resolved. Then, if you go from resolved to uninstalled, this= means that it's no longer available for use (and the only reason you&#= 39;d find something in this state for very long is due to a memory leak).
Any objections? This would make our LifeCycle interface more co= mpatible with OSGi while providing a well-understood standard for the life = cycle of plugin-type objects.

--
Ma= tt Sicker <boards@= gmail.com>
--001a113ce460d6601e0502f87c8b--