Giacomo Pati wrote:
>
> Another issue is the missing interface Recomposable which has vanished in
> the service package. We use it internally on some component. Most of their
> use is publicate code like:
>
>       public void compose( ComponentManager manager )
>       {
>           this.manager = manager;
>       }
>
>       public void recompose( ComponentManager manager )
>       {
>           this.manager = manager;
>       }
>
> Which was for the sake of the guideline from the Component packge and can
> be replace by a single service method.
>
> In other places I've seen code like this:
>
>       public void compose( ComponentManager manager )
>       {
>           this.mainManager = manager;
>           this.manager = manager;
>       }
>
>       public void recompose( ComponentManager manager )
>       {
>           this.manager = manager;
>       }
>
> which can be ported to:
>
>       public void service( ServiceManager manager )
>       {
>             if( this.mainManager == null )
>             {
>               this.mainManager = manager;
>             }
>           this.manager = manager;
>       }
>
> Do I have your +1 for that?
>
Yes, this should work: +1

Carsten


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

Reply via email to