[cdi-dev] [JBoss JIRA] (CDI-114) Allow registration of beans at runtime
Vincent Massol (Commented) (JIRA)
jira-events at lists.jboss.org
Wed Nov 16 08:30:40 EST 2011
[ https://issues.jboss.org/browse/CDI-114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12643335#comment-12643335 ]
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 (http://extensions.xwiki.org) 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: http://extensions.xwiki.org/xwiki/bin/view/Extension/Component+Module
> Allow registration of beans at runtime
> Key: CDI-114
> URL: https://issues.jboss.org/browse/CDI-114
> Project: CDI Specification Issues
> Issue Type: Feature Request
> Components: Beans
> 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: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the cdi-dev