avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen McConnell <mcconn...@apache.org>
Subject Re: Fortres: async/sync init
Date Fri, 23 Aug 2002 03:39:59 GMT
[please ignore last email]

Marcus:

Mave just updated the profile meta-data to support additional values for
the activation attribute.  The attribute valuemay not also include
"startup" and "lazy".

The following statements are equivalent and will cause component
activation on startup of a container:

  <component name="my-component" class="MyClass" activation="startup" />
  <component name="my-component" class="MyClass" activation="true" />
  <component name="my-component" class="MyClass" activation="yes" />
  <component name="my-component" class="MyClass" activation="on" />
  <component name="my-component" class="MyClass" activation="1" />

The following statements are equivalent and put activation in lazy mode.

  <component name="my-component" class="MyClass" activation="lazy" />
  <component name="my-component" class="MyClass" activation="false" />
  <component name="my-component" class="MyClass" activation="no" />
  <component name="my-component" class="MyClass" activation="off" />
  <component name="my-component" class="MyClass" activation="0" />
  <component name="my-component" class="MyClass" />


Stephen McConnell wrote:

 >
 >
 > Marcus Crafter wrote:
 >
 >> On Fri, Jul 19, 2002 at 03:28:22PM +0200, Stephen McConnell wrote:
 >>
 >>
 >>
 >>>      <!--
 >>>      Declare the default activation policy.
 >>>      -->
 >>>      <activation on="startup"/>
 >>>
 >>
 >>
 >>     ok. That's fine with me.
 >>
 >>
 >>
 >>> Where the "on" value shall be either of the following keywords -
 >>> "startup" or "request".
 >>> As far as the component declaration is concerned, I would prefer to
 >>> see this like:
 >>>
 >>>   <component name="... " class="..." on="request"/>
 >>>
 >>
 >>
 >>     How about init-on, or activate-on ? just 'on' feels like     it's
 >> not enough to explain what it means.
 >>
 >
 > I know what you mean - I thought about this when preparing the prev.
 > email. I'm trying to avoid hyphenated attribute names which led me to
 > the choice between "activation" and "on" - I chose "on" because it was
 > consistant with the default policy description attribute.  Personally
 > I prefer "on", but I could live with "activation" as the attribute name.
 >
 > Cheers, Steve.
 >
 >>     Cheers,
 >>
 >>     Marcus
 >>
 >>
 >>
 >

-- 

Stephen J. McConnell

OSM SARL
digital products for a global economy
mailto:mcconnell@osm.net
http://www.osm.net





--
To unsubscribe, e-mail:   <mailto:avalon-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-dev-help@jakarta.apache.org>


Mime
View raw message