Marcus Crafter wrote:
>
>
> Since ROLE is the classes FQN, why not just specify the Class
> object itself
> like:
>
> interface Service {
>       // methods
> }
>
> Service s = (Service) m_manager.lookup(Service.class);
>
> I know this discussion is not new - just wondering what the advantage is
> with the first approach?
>
The string approach is more flexible; if you have more than one
implementation
for your role (like e.g. the cocoon generators etc.) then you have
not a one-to-one relationship between the Class and the role string.

Carsten


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

Reply via email to