Re: [PROPOSAL] lifecycle release

Stefano Mazzocchi <[email protected]>
Newsgroups gmane.comp.jakarta.avalon.phoenix.devel
Message-ID <[email protected]>
Peter Donald wrote:

> The last six months I have been developing a container that extracts all 
> metadata from attributes/javadoc tags (similar to commons-attributes, dot.net 
> attributes or the various interceptor frameworks). So it would end up being 
> specified by something like
> 
> /**
>  * @fortress.lifecycle name="ThreadSafe"
>  */
> public class MyComponent {}

Sounds cool.

What about specifying a different comment namespace rather than the 
javadoc one and use an xml syntax instead of the 
soon-to-be-too-simple-for-the-purpose javadoc one?

/*+
   | <avalon:metadata xmlns="http://apache.org/avalon/matadata/1.0">
   |  <avalon:lifecycle name="ThreadSafe"/>
   | </avalon:metadata>
   +*/

That gives you:

  1) complete Soc between javadoc comments
  2) complete SoC between code and attributes
  3) versioning of the metadata schema (thru namespace URI identify) 
that will ease transition in the future
  4) complete visual separation between javadocs and object metadata
  5) easier to automate in editors (due to #5)

what do you think?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.