[
http://jira.jboss.com/jira/browse/JBESB-476?page=comments#action_12381295 ]
Tom Fennelly commented on JBESB-476:
------------------------------------
No, that BeanConfiguredAction thing is a hack and there's a better way of configuring
these components. I've moved configuration (and component lifecycle) on Smooks based
components to be totally annotation driven (auto validation, type conversion, enum support
etc). We could lift the basic code and do the same for the ESB (whenever).
Make action, listener etc configuration setting by setter method the
default
----------------------------------------------------------------------------
Key: JBESB-476
URL:
http://jira.jboss.com/jira/browse/JBESB-476
Project: JBoss ESB
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: Configuration
Affects Versions: 4.0
Reporter: Tom Fennelly
Assigned To: Kevin Conner
Fix For: 4.2.1
We currently configure everything by constructor. This is not great for a number of
reasons:
1. It can't be compile time validated.
2. Not as "obvious" to someone developing against the API. If in an interface,
their IDE (or at least compiler - if using a stone ax) will complain immediately that
they're not implementing the interface correctly.
3. Makes our code a little bit more complicated re the reflection code that needs to be
implemented.
So I suggest making the interface (that all these things implement) contain a setter
method that takes the config. The mandate on the implementation is that they contain a
public default constructor.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira