[jboss-dev-forums] [JBoss Transactions Development] - beanifying the config

Mark Little do-not-reply at jboss.com
Wed Mar 31 08:05:35 EDT 2010


Mark Little [http://community.jboss.org/people/mark.little%40jboss.com] replied to the discussion

"beanifying the config"

To view the discussion, visit: http://community.jboss.org/message/534889#534889

--------------------------------------------------------------
I was looking at this recently because of some of the unit tests I was writing (wanted to change the setting in one test and then revert in another, but there was no way to revert once it was set). My solution (not implemented) was going to be similar to what you've outlined: hide the synchronization in the bean through a factory. Those classes that really don't ever want to be informed of changes can then implement whatever policy they want at a higher level, e.g., assigning a local variable and not going back to the bean beyond the first call.

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/534889#534889]

Start a new discussion in JBoss Transactions Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2041]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20100331/c725b4d5/attachment.html 


More information about the jboss-dev-forums mailing list