[jboss-jira] [JBoss JIRA] Closed: (JBPM-843) Custom TaskController variable setting should use getter/setter rather than fields
Tom Baeyens (JIRA)
jira-events at lists.jboss.org
Wed Mar 21 10:12:59 EDT 2007
[ http://jira.jboss.com/jira/browse/JBPM-843?page=all ]
Tom Baeyens closed JBPM-843.
----------------------------
Resolution: Rejected
use config-type="bean" for that
<controller class="MyTaskControllerHandler" config-type="bean">
<foo>bar</foo>
</controller>
i know this wiring xml is not the best ever. but it will be only revisited in jbpm 4.
regards, tom.
> Custom TaskController variable setting should use getter/setter rather than fields
> ----------------------------------------------------------------------------------
>
> Key: JBPM-843
> URL: http://jira.jboss.com/jira/browse/JBPM-843
> Project: JBoss jBPM
> Issue Type: Bug
> Components: Core Engine
> Affects Versions: jBPM 3.1.4
> Reporter: Pete Muir
> Assigned To: Tom Baeyens
> Priority: Minor
>
> If you do
> <controller class="MyTaskControllerHandler">
> <foo>bar</foo>
> </controller>
> JBPM attempts to set the value of a field called foo on MyTaskControllerHandler. IMO it should call setFoo(bar) (encapsulation). See Seam's org.jboss.seam.util.Reflections for helper methods to do this.
--
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
More information about the jboss-jira
mailing list