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