cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guido Casper <gcas...@s-und-n.de>
Subject Re: [RT] Concerns surrounding CocoonNG
Date Wed, 11 Aug 2004 06:47:58 GMT
Niclas Hedhman wrote:
> Looking at the actual differences;
> 
> public AbcComponent( org.hedhman.niclas.SomeDependency some )
> {
>     m_SomeDependency = some;
> }
> 
> /** @avalon.dependency type="org.hedhman.niclas.SomeDependency" 
> *      key = "some"
> */
> public void service(ServiceManager man )
> {
>     m_SomeDependency = (SomeDependency) man.lookup( "some" );
> }

On the surface it may be not that different from a dependency management
POV but the first is easier to unit test ...

Guido





Mime
View raw message