Raphael Luta wrote:
> Santiago Gala wrote:
> >
> > I'm using Observable for tests, but we can change this class by some
> > other
> > interface if needed after the concept is tested. I will look for
similar
> > patterns in Turbine/Avalon code.
> >
>
> I thought that the Observer pattern was deprecated in Java and a
> Listener/Event model was the recommended way of doing things now.
Yes, the listener/event pattern should be used instead.
> In any case, I think there are several issues with the disk cache system
> right now, the main one being that it's over-used throughout the current
> jetspeed code, as an interface for accessing remote documents, config
files,
> etc... We have to stop this !
>
> We should :
> 1- Define what is the *real* purpose of the DiskCache
> IMO, the cache should not try to be as intelligent as it is now
>
> 2- Define what kind of repository access we need in Jetspeed
> I can see at least 2:
> - remote syndicated document repository
> - configuration file repository
> others ?
>
> 3- Define facade class/interface for accessing these repositories
> * syndicated document = URLManager service
> * configuration files = Persistence service ?
These interfaces need to be extensions to the portlet API.
>
> 4- Implement these services so that they (don't) use the DiskCache as
> they see fit
I think one thing we should observe here is that often systems use proxys
for caching. For that case, the URLManager service should be configurable,
so that by specifying an optional parameter like mode=proxy, use of the
disk cache is disabled.
>
> 5- Replace all the other references to the DiskCache in other parts of
the
> code to references to the appropriate Facade classes.
>
> 6- Have a party :)
This is a good plan, I especially like item 6 :)
Best regards,
Thomas
Thomas Schaeck
IBM Pervasive Computing Division
Phone: +49-(0)7031-16-3479 e-mail: [EMAIL PROTECTED]
Address: IBM Deutschland Entwicklung GmbH,
Schoenaicher Str. 220, 71032 Boeblingen, Germany
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/[email protected]/>
List Help?: [EMAIL PROTECTED]