On Thu, 22 Mar 2007, Matt Benson <[EMAIL PROTECTED]> wrote:
> --- Stefan Bodewig <[EMAIL PROTECTED]> wrote:
> 
>> On Wed, 21 Mar 2007, Matt Benson
>> <[EMAIL PROTECTED]> wrote:

>> > Surely we can't go there... maybe we'd better rethink the
>> > "instanceof FileResource" idiom instead, e.g.
>> > isFilesystemResource()?
>> 
>> Or throw in an interface that contains getFile() and is implemented
>> by FileRessource - and modify the "instanceof FileResource" idiom
>> to "instanceof that new interface".
> 
> That gives me a nice comfy feeling.

Good.

> If we simply mandate that this type of Resource classification
> should always be interface-defined (we probably should have done
> this from the beginning

+1

> ), we can use JDK1.3 proxies and avoid cglib,

+1 again.

> Another cool thing seems to be that we could provide
> some kind of ResourceCollection that could proxy the
> resources from another collection but provide their
> content in files even for non-file resources

Yes, that sounds interesting.  We could throw in similar things to
attach permission bits to ressources that are not archiveressources
and so on.

Stefan

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

Reply via email to