Hello, I've come across the following Jigsaw puzzle ;) I have a class ManagedFileResource extends FileResource, which works fine, i.e. it does what I want it to do when I go and manually add files via the AddingResources form . Now I want to have directories where all the files in that directory are automatically attached to a ManagedFileResource. Shouldn't I be able to this by just having a class ManagedDirectoryResource extends DirectoryResource and only overriding createDefaultResource(). That' what I would like to (and I'm trying) to do. But what troubles me is I see that DirectoryResource.createDefaultResource() calls ResourceIndexer.createResource(). Why should the ResourceIndexer be the one creating? The ResourceIndexer shouldn't need to know what classes I feel like using for my files... If I have to go through the Indexer then I need to subclass that too to handle my kind of resources? If so, then where do I tell the server to use a different Indexer... -nemo-Received on Thursday, 25 July 1996 17:11:00 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 6 April 2009 12:59:46 GMT