Niclas Hedhman wrote:

On Wednesday 29 October 2003 17:24, Stephen McConnell wrote:


Should a container/component contract deal with constructors? Probably -
but with a very strong and consitent semantic model (which IMO means not
passing services directly via a constructor, but supporting
container/component artifacts [e.g. service manager, context, logger,
etc.]).



public class ABitMoreModernComponent
{
public ModernComponent( Logger logger,
ServiceManager man,
Context ctx,
Configuration conf
)
{
}
}


and the next step(?)

public class MyModernComponent
{
public ModernComponent( Logger logger,
ServiceManager man,
Context ctx,
MyModernComponentConfiguration conf
)
{
}
}


pubilc interface MyModernComponentConfiguration
{
        String getWhatever();
        int getSomeValue();
        MyObject getSomeComplexType();
}


Hmmmm....
How come I suddenly is not so happy with the Avalon Framework way of doing things, as I was a few months back?



Exactly! Which is why my train of though is going beyond the above. Steve.


Cheerio Niclas

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





--


Stephen J. McConnell
mailto:[EMAIL PROTECTED]




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



Reply via email to