/** * Add the provided property accessors. Each accessor name * will be the class simple name. * @param propertyAccessors the accessors. * @return this registrar. * @since 4.3.8 */ public SpelPropertyAccessorRegistrar add(PropertyAccessor... propertyAccessors) { Assert.notEmpty(propertyAccessors, "'propertyAccessors' must not be empty"); for (PropertyAccessor propertyAccessor : propertyAccessors) { this.propertyAccessors.put(obtainAccessorKey(propertyAccessor), propertyAccessor); } return this; }
/** * Create an instance with the provided property accessors. Each accessor name * will be the class simple name. * @param propertyAccessors the accessors. * @since 4.3.8 */ public SpelPropertyAccessorRegistrar(PropertyAccessor... propertyAccessors) { Assert.notEmpty(propertyAccessors, "'propertyAccessors' must not be empty"); for (PropertyAccessor propertyAccessor : propertyAccessors) { this.propertyAccessors.put(obtainAccessorKey(propertyAccessor), propertyAccessor); } }
/** * Create an instance with the provided property accessors. Each accessor name * will be the class simple name. * @param propertyAccessors the accessors. * @since 4.3.8 */ public SpelPropertyAccessorRegistrar(PropertyAccessor... propertyAccessors) { Assert.notEmpty(propertyAccessors, "'propertyAccessors' must not be empty"); for (PropertyAccessor propertyAccessor : propertyAccessors) { this.propertyAccessors.put(obtainAccessorKey(propertyAccessor), propertyAccessor); } }
/** * Add the provided property accessors. Each accessor name * will be the class simple name. * @param propertyAccessors the accessors. * @return this registrar. * @since 4.3.8 */ public SpelPropertyAccessorRegistrar add(PropertyAccessor... propertyAccessors) { Assert.notEmpty(propertyAccessors, "'propertyAccessors' must not be empty"); for (PropertyAccessor propertyAccessor : propertyAccessors) { this.propertyAccessors.put(obtainAccessorKey(propertyAccessor), propertyAccessor); } return this; }