Hi guys,

I've readded the default constructor to Resource (in SVN). I need a way to
ensure that all logging messages could be separated for each application.
With the constructor taking a Logger instance I can now pass in the
application's logger and get all resource's messages written to it. The
default constructor just create a new logger based on the full class name
instead.

> Personal note: Not sure if I like the unification of the Decorator 
> pattern with the 'normal' classes (this affects also Restlet, 
> Request, Response, ...). 

The need for wrapper when further to many other classes as it's the
mechanism used to separate the API classes from the implementation classes.
It was becoming too cumbersome to maintain all those wrappers (and create
new ones), Javadocs duplication and making sure no method wrapper code was
missing.

Every core class now has an optional "wrapper constructor" that achieves the
same effect as instantiating the old wrapper classes:

    new WrapperRestlet(wrappedRestlet) ==> new Restlet(wrappedRestlet)

Best regards,
Jerome

Reply via email to