cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From da...@cocoon.zones.apache.org
Subject [DAISY] Updated: Dynamic Registry Support
Date Thu, 19 Jul 2007 16:21:48 GMT
A document has been updated:

http://cocoon.zones.apache.org/daisy/documentation/1400.html

Document ID: 1400
Branch: main
Language: default
Name: Dynamic Registry Support (unchanged)
Document Type: Cocoon Document (unchanged)
Updated on: 7/19/07 4:21:31 PM
Updated by: Carsten Ziegeler

A new version has been created, state: publish

Parts
=====

Content
-------
This part has been updated.
Mime type: text/xml (unchanged)
File name:  (unchanged)
Size: 1630 bytes (previous version: 1029 bytes)
Content diff:
(15 equal lines skipped)
    <h2>The Bean Map</h2>
    
    <p>The spring-configurator provides a dynamic bean map just for this purpose. It
--- can either be used as a standalone bean or as a property of another bean:</p>
+++ can either be used as a standalone bean or as a property of another bean. If you
+++ want to use it as a standalone bean, you have to specify either the name or the
+++ id attribute (like you do with the usual Spring bean definition as well):</p>
    
--- <pre>&lt;configurator:bean-map&gt;
+++ <pre>&lt;configurator:bean-map id/name="optional" type="the.class.of.the.registered.beans"
check-parent="true" strip-prefix="true"&gt;
    
    &lt;/configurator:bean-map&gt;
    </pre>
    
+++ <p>This will create a map which contains all registered beans which
+++ support/implement the given type.</p>
+++ 
+++ <p>The key to store the registered beans in the map is the bean name, or if
+++ "check-parent" is set to true and the bean name starts with the type followed by
+++ either a "." or a "/" then the postfix is used as the key.</p>
+++ 
+++ <p>TBC</p>
+++ 
    </body>
    </html>


Mime
View raw message