Hi folks,
Regarding the XWIKI-2968 <http://jira.xwiki.org/jira/browse/XWIKI-2968>
issue, this is what i've been suggested:
You should put warning, error and info macro in the same project based on the same
AbstractMessageMacro or something like that because theses 3 macro have almost exactly the
same code. You could even have only one java macro implementation and use the macro name
to find the class name.
Personally, I'm +1 for the second approach, creating a single java class for all the
three macros, and dynamically check for the macro name and deciding what exactly macro
type is to be rendered at runtime. Reason: It's simple, it's light, it's an
easy to track approach.
If you have a different opinion, please let me know.
Tnx, Dan