> -----Original Message-----
> From: Hamilton Verissimo de Oliveira (Engenharia - SPO)
>
> -----Mensagem original-----
> De: Peter Courcoux [mailto:[EMAIL PROTECTED]
>
> > It appears to me that the A4 framework implies a series of
> individual
> > contracts Configuration, Contextualisation, Servicable etc. AND an
> > order of execution.
>
> Yup, although its sometimes implict.
>
> I think I disagree with LS thoughs in sense of we are
> delivering an Avalon container, so - damn its Avalon - the
> container should know the steps of execution that he must
> obey, and guarantee its order. It must pass on the future tck.
>
> Other strategies like Pico or Spring could be plugged into
> one of these execution steps - the avalon ones - not
> requiring a different handler, just different
> aspects/concerns implementations.
>
> The current situation of Aspects proposal is more like a
> generic component container where Avalon is just one of the
> possibilities. I think being a bit
> more restrictive wouldn't kill us :-) but I might be wrong!
A short reply - I have to run:
The basic thought is this: All frameworks (Pico, A4, Spring) have
some equivalent to the A4 stages. For example:
A4: Passes a ServiceManager to the component
Pico: Passes dependencies in the constructor
Spring: Uses setter methods?
So therefore I figured that you need:
+ Handlers to manage instances and apply things correctly in the
right order and so on.
+ Aspects to provide the things the handlers apply.
In the experiment the handler is given a ServiceManager to resolve
dependencies, but the handler controls just how those dependencies
are provided to the component. Since it is an A4Handler, it simply
passes along the ServiceManager. A PicoHandler would do the lookups
and pass on the references. (This is also why the aspect passes a
ServiceManager to a handler and not directly to the component
instance.)
/LS
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]