sylvain 01/11/13 06:05:45
Modified: src/org/apache/cocoon cocoon.roles
Log:
- add pipeline-roles to re-enable caching (?? thought to have commited that earlier)
- classification of roles in categories
Revision Changes Path
1.28 +103 -51 xml-cocoon2/src/org/apache/cocoon/cocoon.roles
Index: cocoon.roles
===================================================================
RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/cocoon.roles,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- cocoon.roles 2001/11/09 05:51:43 1.27
+++ cocoon.roles 2001/11/13 14:05:45 1.28
@@ -13,6 +13,11 @@
]>
<role-list>
+
+<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ General purpose roles
+ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
+
<role name="org.apache.cocoon.components.parser.Parser"
shorthand="parser"
default-class="org.apache.cocoon.components.parser.JaxpParser"/>
@@ -25,17 +30,21 @@
shorthand="xpath-processor"
default-class="org.apache.cocoon.components.xpath.XPathProcessorImpl"/>
- <role name="org.apache.cocoon.components.browser.Browser"
- shorthand="browser"
- default-class="org.apache.cocoon.components.browser.BrowserImpl"/>
+ <role name="org.apache.cocoon.components.classloader.ClassLoaderManager"
+ shorthand="classloader"
+
default-class="org.apache.cocoon.components.classloader.ClassLoaderManagerImpl"/>
-<!-- For backwards compatibility, the shorthand for this role is "sitemap"
- <role name="org.apache.cocoon.Processor"
- shorthand="processor"/>
--->
- <role name="org.apache.cocoon.Processor"
- shorthand="sitemap"
- default-class="org.apache.cocoon.sitemap.SitemapManager"/>
+ <role name="org.apache.avalon.excalibur.datasource.DataSourceComponentSelector"
+ shorthand="datasources"
+
default-class="org.apache.avalon.excalibur.component.ExcaliburComponentSelector">
+ <hint shorthand="jdbc"
class="org.apache.avalon.excalibur.datasource.JdbcDataSource"/>
+ <hint shorthand="j2ee"
class="org.apache.avalon.excalibur.datasource.J2eeDataSource"/>
+ <hint shorthand="informix"
class="org.apache.avalon.excalibur.datasource.InformixDataSource"/>
+ </role>
+
+<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ Cache roles
+ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<role name="org.apache.cocoon.components.store.Store"
shorthand="store"
@@ -45,6 +54,34 @@
shorthand="repository"
default-class="org.apache.cocoon.components.store.FilesystemStore"/>
+ <role name="org.apache.cocoon.components.store.Store/EventCache"
+ shorthand="event-cache"
+ default-class="org.apache.cocoon.components.store.MRUMemoryStore"/>
+
+ <role name="org.apache.cocoon.components.store.Store/StreamCache"
+ shorthand="stream-cache"
+ default-class="org.apache.cocoon.components.store.MRUMemoryStore"/>
+
+ <role name="org.apache.cocoon.components.store.StoreJanitor"
+ shorthand="store-janitor"
+ default-class="org.apache.cocoon.components.store.StoreJanitorImpl"/>
+
+ <role name="org.apache.cocoon.components.store.FilesystemQueue"
+ shorthand="filesystem-queue"
+ default-class="org.apache.cocoon.components.store.FilesystemQueueImpl"/>
+
+ <role name="org.apache.cocoon.components.sax.XMLSerializer"
+ shorthand="xml-serializer"
+ default-class="org.apache.cocoon.components.sax.XMLByteStreamCompiler"/>
+
+ <role name="org.apache.cocoon.components.sax.XMLDeserializer"
+ shorthand="xml-deserializer"
+ default-class="org.apache.cocoon.components.sax.XMLByteStreamInterpreter"/>
+
+<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ Program generator roles
+ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
+
<role name="org.apache.cocoon.components.language.generator.ServerPagesSelector"
shorthand="server-pages"
default-class="org.apache.cocoon.components.language.generator.GeneratorSelector"/>
@@ -66,29 +103,14 @@
shorthand="program-generator"
default-class="org.apache.cocoon.components.language.generator.ProgramGeneratorImpl"/>
- <role name="org.apache.cocoon.components.jsp.JSPEngine"
- shorthand="jsp-engine"
- default-class="org.apache.cocoon.components.jsp.JSPEngineImpl"/>
+<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ Source and URL related roles
+ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<role name="org.apache.cocoon.components.resolver.Resolver"
shorthand="resolver"
default-class="org.apache.cocoon.components.resolver.ResolverImpl"/>
- <role name="org.apache.cocoon.components.classloader.ClassLoaderManager"
- shorthand="classloader"
-
default-class="org.apache.cocoon.components.classloader.ClassLoaderManagerImpl"/>
-
- <role name="org.apache.cocoon.components.image.ImageEncoderSelector"
- shorthand="image-encoder"/>
-
- <role name="org.apache.avalon.excalibur.datasource.DataSourceComponentSelector"
- shorthand="datasources"
-
default-class="org.apache.avalon.excalibur.component.ExcaliburComponentSelector">
- <hint shorthand="jdbc"
class="org.apache.avalon.excalibur.datasource.JdbcDataSource"/>
- <hint shorthand="j2ee"
class="org.apache.avalon.excalibur.datasource.J2eeDataSource"/>
- <hint shorthand="informix"
class="org.apache.avalon.excalibur.datasource.InformixDataSource"/>
- </role>
-
<role name="org.apache.cocoon.components.url.URLFactory"
shorthand="url-factory"
default-class="org.apache.cocoon.components.url.URLFactoryImpl"/>
@@ -96,30 +118,22 @@
<role name="org.apache.cocoon.components.source.SourceHandler"
shorthand="source-handler"
default-class="org.apache.cocoon.components.source.SourceHandlerImpl"/>
-
- <role name="org.apache.cocoon.components.sax.XMLSerializer"
- shorthand="xml-serializer"
- default-class="org.apache.cocoon.components.sax.XMLByteStreamCompiler"/>
- <role name="org.apache.cocoon.components.sax.XMLDeserializer"
- shorthand="xml-deserializer"
- default-class="org.apache.cocoon.components.sax.XMLByteStreamInterpreter"/>
+<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ Misc. roles
+ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
- <role name="org.apache.cocoon.components.store.Store/EventCache"
- shorthand="event-cache"
- default-class="org.apache.cocoon.components.store.MRUMemoryStore"/>
+ <role name="org.apache.cocoon.components.browser.Browser"
+ shorthand="browser"
+ default-class="org.apache.cocoon.components.browser.BrowserImpl"/>
- <role name="org.apache.cocoon.components.store.Store/StreamCache"
- shorthand="stream-cache"
- default-class="org.apache.cocoon.components.store.MRUMemoryStore"/>
-
- <role name="org.apache.cocoon.components.store.StoreJanitor"
- shorthand="store-janitor"
- default-class="org.apache.cocoon.components.store.StoreJanitorImpl"/>
+ <role name="org.apache.cocoon.components.jsp.JSPEngine"
+ shorthand="jsp-engine"
+ default-class="org.apache.cocoon.components.jsp.JSPEngineImpl"/>
- <role name="org.apache.cocoon.components.store.FilesystemQueue"
- shorthand="filesystem-queue"
- default-class="org.apache.cocoon.components.store.FilesystemQueueImpl"/>
+ <role name="org.apache.cocoon.components.xscript.XScriptManager"
+ shorthand="xscript"
+ default-class="org.apache.cocoon.components.xscript.XScriptManagerImpl"/>
<role name="org.apache.cocoon.components.hsqldb.Server"
shorthand="hsqldb-server"
@@ -129,8 +143,46 @@
shorthand="profiler"
default-class="org.apache.cocoon.components.profiler.SimpleProfiler"/>
- <role name="org.apache.cocoon.components.xscript.XScriptManager"
- shorthand="xscript"
- default-class="org.apache.cocoon.components.xscript.XScriptManagerImpl"/>
+ <role name="org.apache.cocoon.components.image.ImageEncoderSelector"
+ shorthand="image-encoder"/>
+
+<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ Pipeline-related roles
+ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
+
+<!-- For backwards compatibility, the shorthand for this role is "sitemap"
+ <role name="org.apache.cocoon.Processor"
+ shorthand="processor"/>
+-->
+ <role name="org.apache.cocoon.Processor"
+ shorthand="sitemap"
+ default-class="org.apache.cocoon.sitemap.SitemapManager"/>
+
+ <role name="org.apache.cocoon.components.pipeline.StreamPipeline"
+ shorthand="stream-pipeline"
+
default-class="org.apache.cocoon.components.pipeline.NonCachingStreamPipeline"/>
+
+ <role name="org.apache.cocoon.components.pipeline.EventPipeline"
+ shorthand="event-pipeline"
+
default-class="org.apache.cocoon.components.pipeline.NonCachingEventPipeline"/>
+
+ <role name="org.apache.cocoon.components.saxconnector.SAXConnector"
+ shorthand="sax-connector"/>
+
+ <role name="org.apache.cocoon.generation.GeneratorSelector"
+ shorthand="generator"
+ default-class="org.apache.cocoon.sitemap.SitemapComponentSelector"/>
+
+ <role name="org.apache.cocoon.transformation.TransformerSelector"
+ shorthand="transformer"
+ default-class="org.apache.cocoon.sitemap.SitemapComponentSelector"/>
+
+ <role name="org.apache.cocoon.serialization.SerializerSelector"
+ shorthand="serializer"
+ default-class="org.apache.cocoon.sitemap.SitemapComponentSelector"/>
+
+ <role name="org.apache.cocoon.reading.ReaderSelector"
+ shorthand="reader"
+ default-class="org.apache.cocoon.sitemap.SitemapComponentSelector"/>
</role-list>
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]