Niclas Hedhman wrote:

On Monday 15 December 2003 06:52, Stephen McConnell wrote:


Daniel Dekany wrote:


(Here I would like to note that, IMO it would be better if "release
requirement" is bounds to the Role, and not the Service.)


Translating this to a computational defintion - what you saying is that
it would be better that this criteria be expressed in metadata (e.g. in
the block defintion) as opposed to metainfo (e.g. via an interface or
xinfo descriptor).

If that's a correct translation - then I agree.



I understand it as neither, more like;



public interface MyService { /** @avalon.requirement=explicit-release **/ static final String NORMAL_ROLE = "org.hedhman.niclas.MyService/normal";

   /** @avalon.requirement=implicit-release
   **/
   static final String LAZY_ROLE = "org.hedhman.niclas.MyService/lazy";
}

or something along these lines.


Declaring information in an interface is basically the same as declaring attributes inside a xinfo file - its metainfo declarring structural criteria. Declaring a release usage policy inside a block directive (metadata) is a different proposition because its information that is describing information about the handling of a partiular component type in a particular deployment scenario.


I would favour the declaration in metadata, not metainfo.

Stephen.

--

Stephen J. McConnell
mailto:[EMAIL PROTECTED]

|------------------------------------------------|
| Magic by Merlin                                |
| Production by Avalon                           |
|                                                |
| http://avalon.apache.org/merlin                |
| http://dpml.net/                               |
|------------------------------------------------|





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to