cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <cziege...@s-und-n.de>
Subject RE: Getting rid of deprecated Interfaces/Classes/Methods
Date Wed, 02 Oct 2002 12:30:56 GMT
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


Mime
View raw message