You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Carsten Ziegeler <cz...@s-und-n.de> on 2002/10/02 14:30:56 UTC

RE: Getting rid of deprecated Interfaces/Classes/Methods

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: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org