You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Thorsten Scherler <th...@wyona.com> on 2006/03/31 10:56:34 UTC

Re: [Proposal] Moving components configuration to the resource type API

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/component-instance[@name =
'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
thorsten.scherler@wyona.com                thorsten@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org