[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Problem deploying bean with a property annotation

alesj do-not-reply at jboss.com
Mon Sep 24 11:21:55 EDT 2007


"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#4088001

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4088001



More information about the jboss-dev-forums mailing list