List Info

Thread: Re: weird code in ExistingUsecaseResolver.java - can anyone explain?




Re: weird code in ExistingUsecaseResolver.java - can anyone explain?
country flaguser name
Switzerland
2007-02-26 03:33:59
Jörn Nettingsmeier schrieb:
> hi *!
> 
> in
>
src/java/org/apache/lenya/cms/publication/templating/Existin
gUsecaseResolver.java
>  , i see this:

[...]

> a) does this code ever do anything? iiuc we don't have
<usecases/> or
> <usecase> elements in publication.xconf.

The class was obsolete, I removed it.
Thanks for the pointer.

> b) is it ok to parse publication.xconf in more than one
java class, or
> had we better handle everything in
PublicationConfiguration ?

Basically everything should be done in
PublicationConfiguration.
An exception would be composition, then it would make sense
to pass
a configuration snippet to a different component (e.g. the
path mapper).

-- Andreas


------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )