Neeme Praks wrote:
> 
> I have the following method in XMLResourceBundle:
> 
>     public void setLogger( final Logger logger )
>     {
>         this.logger = logger;
>     }
> 
> Now, the question is: who will call this method? Is it
> XMLResourceBundleFactory? or is it some other "black-magic" component
> manager? :-)
> And if it is XMLResourceBundleFactory (I suspect that it is), what should it
> be set to? The same logger as XMLResourceBundleFactory is using or some
> other?
> Probably the XMLResourceBundle logger should be in a child category?

Who instantiates and manages the instance?
It should always be the entity that creates the objects.

Whether you want the Logger to be in the same category as the Factory,
or in a child category is up to you.  I would leave it in one of those
two locations.

S/MIME Cryptographic Signature

Reply via email to