On Mon, Feb 25, 2002 at 11:10:47AM -0500, Berin Loritsch wrote:
> Marcus Crafter wrote:
> >
> >/**
> > * The Container is an interface used to mark the Containers in your 
> > system. It
> > * exposes a protected getComponentManager() method so that the Container's
> > * Manager can expose that to the instantiating class.
> > *
> > * @author <a href="mailto:[EMAIL PROTECTED]";>Berin Loritsch</a>
> > * @version CVS $Revision: 1.6 $ $Date: 2002/02/05 20:38:17 $
> > */

[snip]..

> >     Should there be a getComponentManager() method here ?
> 
> It is a violation of IOC (aka subversion of control) to expose the CM
> to any class that can get a handle on the Container.

        Ok, no problem (I agree). It was written in the javadocs:

"It exposes a protected getComponentManager() method so that the Container's"

        Cheers,

        Marcus

-- 
        .....
     ,,$$$$$$$$$,      Marcus Crafter
    ;$'      '$$$$:    Computer Systems Engineer
    $:         $$$$:   ManageSoft GmbH
     $       o_)$$$:   82-84 Mainzer Landstrasse
     ;$,    _/\ &&:'   60327 Frankfurt Germany
       '     /( &&&
           \_&&&&'
          &&&&.
    &&&&&&&:

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

Reply via email to