[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: What does this mean?
adrian@jboss.org
do-not-reply at jboss.com
Fri Jan 12 08:42:57 EST 2007
"scott.stark at jboss.org" wrote :
| Either this code or the caller needs to validate that a getter exists.
|
The code should be:
| JoinpointFactory jpf = info.getBeanInfo().getJoinpointFactory();
| MethodInfo minfo = info.getGetter();
| + if (minfo == null)
| + throw new IllegalArgumentException("Property is write only");
| return getMethodJoinpoint(null, jpf, minfo.getName(), null, null);
|
The preinstantiated lookup should be using a different mechanism
that first checks whether the property is readable
rather than logging a warning when it is not.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4000939#4000939
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4000939
More information about the jboss-dev-forums
mailing list