At 03:26 PM 7/12/2002 +0200, you wrote:
>Hi Peter,
>
>         One question, I just looked at DefaultComponentFactory, is the
>         following analysis right:
>
>         If I define a component suitable for use with a ServiceManager
>         (also not implementing the Component interface) and try to look it
>         up during service() on some other component, then won't the wrapped
>         ComponentManger throw a ClassCastException during lookup() ?

yep. All components hosted in ECM still have to implement Component however 
now those components can be serviceable.

It is possible to get around the problem of not implementing Component by 
proxying all the work interfaces but I am not sure that is worth the effort 
- especially with Cocoon moving to fortress or something else soon.

Cheers,

Peter Donald
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Faced with the choice between changing one's mind,
and proving that there is no need to do so - almost
everyone gets busy on the proof."
              - John Kenneth Galbraith
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


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

Reply via email to