cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [DAISY] Created: Dynamic Registry Support
Date Thu, 19 Jul 2007 16:09:47 GMT
A new document has been created.

Document ID: 1400
Branch: main
Language: default
Name: Dynamic Registry Support
Document Type: Cocoon Document
Created: 7/19/07 4:09:41 PM
Creator (owner): Carsten Ziegeler
State: draft


Mime type: text/xml
Size: 1029 bytes

<h2>Dynamic Registries</h2>

<p>If you want to develop a managing bean which acts like a registry, you face
the problem of how to configure this bean. Usually this bean makes use of some
kind of a map which stores the registered beans under some key. If you want to
configure this in Spring you have to know which registered beans are available
at this point of time. Apart from the amount of configuration you have to type,
this approach is not dynamic. Adding new registered beans requires to change the
configuration of the managing bean. Especially with the spring-configurator,
beans can be added dynamically just by dropping a jar into the class-path. The
approach of this configuration style will simply not work in these cases.</p>

<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>




The document belongs to the following collections: cdocs-spring-configurator

View raw message