El vie, 31-03-2006 a las 10:46 +0200, Michael Wechner escribió: > Thorsten Scherler wrote: > > > > >The core would then know when to delegate to core or to resource type > >implementation. > > > >wdyt? > > > > > > you mean something like > > ODTResourceType extends ResourceType implements Creator, Editor, > Indexer, Publisher, LinkRewriter > > or > > FolderResourceType ResourceType implements Creator, Publisher > > ? >
Not sure yet. ...but above seems a wee bit messy in the end. I thought about something like this: <xconf xpath="/cocoon/resource-types" unless="/cocoon/resource-types/[EMAIL PROTECTED] = 'opendocument']"> <component-instance name="opendocument" logger="lenya.resourcetypes.opendocument" class="org.apache.lenya.cms.publication.ResourceTypeImpl"> <creator src="org.apache.lenya.cms.authoring.DefaultBranchCreator"> <sample-name>fallback://lenya/modules/opendocument/samples/helloworld.odt</sample-name> </creator> <publisher src="org.apache.lenya.cms.authoring.DefaultPublisher"/> <editor src="org.apache.lenya.cms.authoring.DefaultEditor" /> ... <format name="xhtml" uri="cocoon://modules/opendocument/xhtml.xml"/> <format name="webdavGET" uri="cocoon://modules/opendocument/davget.xml"/> </component-instance> </xconf> salu2 -- Thorsten Scherler COO Spain Wyona Inc. - Open Source Content Management - Apache Lenya http://www.wyona.com http://lenya.apache.org [EMAIL PROTECTED] [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
