/** * Sets the properties on the bean. Derived tags could implement some custom * type conversion etc. * <p/> * This method ignores all property names in the Set returned by {@link #getIgnorePropertySet()}. */ protected void setBeanProperties(Object bean, Map attributes) throws JellyTagException { Map attrsToUse = new HashMap(attributes); attrsToUse.keySet().removeAll(getIgnorePropertySet()); validateBeanProperties(bean, attrsToUse); try { BeanUtils.populate(bean, attrsToUse); } catch (IllegalAccessException e) { throw new JellyTagException("could not set the properties of the bean",e); } catch (InvocationTargetException e) { throw new JellyTagException("could not set the properties of the bean",e); } }
/** * Sets the properties on the bean. Derived tags could implement some custom * type conversion etc. * <p/> * This method ignores all property names in the Set returned by {@link #getIgnorePropertySet()}. */ protected void setBeanProperties(Object bean, Map attributes) throws JellyTagException { Map attrsToUse = new HashMap(attributes); attrsToUse.keySet().removeAll(getIgnorePropertySet()); validateBeanProperties(bean, attrsToUse); try { BeanUtils.populate(bean, attrsToUse); } catch (IllegalAccessException e) { throw new JellyTagException("could not set the properties of the bean",e); } catch (InvocationTargetException e) { throw new JellyTagException("could not set the properties of the bean",e); } }
/** * Sets the properties on the bean. Derived tags could implement some custom * type conversion etc. * <p/> * This method ignores all property names in the Set returned by {@link #getIgnorePropertySet()}. */ protected void setBeanProperties(Object bean, Map attributes) throws JellyTagException { Map attrsToUse = new HashMap(attributes); attrsToUse.keySet().removeAll(getIgnorePropertySet()); validateBeanProperties(bean, attrsToUse); try { BeanUtils.populate(bean, attrsToUse); } catch (IllegalAccessException e) { throw new JellyTagException("could not set the properties of the bean",e); } catch (InvocationTargetException e) { throw new JellyTagException("could not set the properties of the bean",e); } }
/** * Sets the properties on the bean. Derived tags could implement some custom * type conversion etc. * <p/> * This method ignores all property names in the Set returned by {@link #getIgnorePropertySet()}. */ protected void setBeanProperties(Object bean, Map attributes) throws JellyTagException { Map attrsToUse = new HashMap(attributes); attrsToUse.keySet().removeAll(getIgnorePropertySet()); validateBeanProperties(bean, attrsToUse); try { BeanUtils.populate(bean, attrsToUse); } catch (IllegalAccessException e) { throw new JellyTagException("could not set the properties of the bean",e); } catch (InvocationTargetException e) { throw new JellyTagException("could not set the properties of the bean",e); } }