[xwiki-devs] [Idea] Switch to annotations for plexus component configuration?
Hi, Here's an idea: use annotations to remove the need for components.xml files. Example: http://svn.apache.org/repos/asf/maven/components/trunk/maven-project/src/mai... Pros: * always correct * simpler maintenance Cons: * small tie with plexus. However the annotations are in small jar file by themselves and are only required at build time and not runtime. I'm not sure yet. WDYT? Thanks -Vincent http://xwiki.com http://xwiki.org http://massol.net
Vincent Massol wrote:
Hi,
Here's an idea: use annotations to remove the need for components.xml files. Example: http://svn.apache.org/repos/asf/maven/components/trunk/maven-project/src/mai...
Pros: * always correct * simpler maintenance
Cons: * small tie with plexus. However the annotations are in small jar file by themselves and are only required at build time and not runtime.
I'm not sure yet. WDYT?
-0 Although I prefer annotations, in this case it's a dependency on Plexus. If we do this, then it will be harder to say that our components are framework-independent. -- Sergiu Dumitriu http://purl.org/net/sergiu/
participants (2)
-
Sergiu Dumitriu -
Vincent Massol