"alesj" wrote :
| Will see what we can do with a property w/o any value.
|
What should be a proper handling of this?
This is where is all starts:
ConfigureAction --> Set joinPoints =
configurator.getPropertySetterJoinPoints(info, metaData);
Configurator:
| public static Set<TargettedJoinpoint> getPropertySetterJoinPoints(BeanInfo
info, BeanMetaData metaData) throws Throwable
| {
| boolean trace = log.isTraceEnabled();
|
| if (info == null)
| throw new IllegalArgumentException("Null bean info");
| if (metaData == null)
| throw new IllegalArgumentException("Null bean metadata");
|
| Set<TargettedJoinpoint> result = new HashSet<TargettedJoinpoint>();
| Set<PropertyMetaData> propertys = metaData.getProperties();
| if (propertys != null && propertys.isEmpty() == false)
| {
| ClassLoader cl = getClassLoader(metaData);
|
| for (Iterator i = metaData.getProperties().iterator(); i.hasNext();)
| {
| PropertyMetaData property = (PropertyMetaData) i.next();
| // PERHAPS ADD CONDITION HERE - if non null value meta data on property?
| TargettedJoinpoint joinPoint = getPropertySetterJoinPoint(trace, info, cl,
property);
| result.add(joinPoint);
| }
| }
|
| return result;
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4088001#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...