cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ricardo Rocha <rica...@apache.org>
Subject Re: Conceptual Question
Date Wed, 07 Jun 2000 22:02:07 GMT
Berin Loritsch wrote:
> 
> I have a conceptual question:
> 
> why is a NamedComponentManager not a ComponentManager?

This has been addressed and a fix is coming soon:

Stefano Mazzocchi wrote:

> Also, here is what I would change:
> 
> 1) move NamedComponent into org.apache.arch
> 2) remove org.apache.arch.named
> 3) add to ComponentManager
> 
>  public NamedComponent getComponent(String role, String name)
>  throws ComponentNotFoundException
> 
> 4) add to ComponentManager
> 
>  public Enumeration getComponents(String role)
>  throws ComponentNotFoundException
> 
> This should allow you to access components by "role" if only one
> component is required for a given role (usually database pools, objects
> stores, thread managers and such) or by "role and name" when there is
> the need to have several flavors of the same components.
> 
> NOTE:
> 
>  Enumeration getRoles()
> 
> is avoided on purpose, since it imposes a little stronger typing between
> configurations and component usages. A component should _NOT_ know the
> existance of other components unless it is _designed_ to know them
> (thus, to know their roles).

Mime
View raw message