Vincent Massol commented on CDI-114:
Maybe you could explain what kind of 'dynamics' you have in XWiki?
Here are some use cases we have:
* We have an Extension Manager which allows us to install various kind of extensions
) at runtime in your wiki. One type of extensions is a JAR
which contains Java classes and components. All components found in that JAR are
discovered and registered in the Component Manager. For example there could be a Java
Macro in the JAR and in the WYSIWYG editor we list all available macros so that new macro
will appear automatically in the list. A component can also override an existing
component, thus replacing it altogether.
* Another use case is that users can define new wiki macros in wiki pages (there's a
form with various fields like macro id, macro description, macro parameters and macro
content which is a script to execute. When the page is saved, an event is fired and we
have a WikiMacro Manager component listening which then registers that wiki macro as a
Macro Component against the Component Manager.
* A last use case is that in wiki pages we can put scripts (velocity, groovy, python, ruby
to name a few) and we can define a Java Class in script and register through scripting
against the Component Manager making the new component either replace an existing one or
register it as a new component.
More information on our Component model is available here too in case it's useful:
Allow registration of beans at runtime
Project: CDI Specification Issues
Issue Type: Feature Request
Affects Versions: 1.0
Reporter: Vincent Massol
Fix For: TBD
I have use cases where I need to register a bean dynamically at runtime (see the forum
reference link for a detailed description of the use case).
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
For more information on JIRA, see: http://www.atlassian.com/software/jira