/** * A generic method for performing actions on the <code>object</code>'s hierarchy of * attributes. For experts only. */ @SafeVarargs public static void bind(Object object, IAttributeBinderAction [] attributeBinderActions, Class<? extends Annotation>... filteringAnnotations) throws InstantiationException, AttributeBindingException { bind(object, attributeBinderActions, filteringAnnotations.length > 0 ? new AllAnnotationsPresentPredicate( filteringAnnotations) : Predicates.<Field> alwaysTrue()); }
new AllAnnotationsPresentPredicate(Input.class, Init.class)); ControllerUtils.init(component, initAttrs, initOutputAttrs, false, context);
/** * A version of {@link #set(Object, Map, Class...)} that can optionally skip * {@link Required} attribute checking. For experts only. */ @SafeVarargs public static <T> Map<String, Object> set(T object, Map<String, Object> values, boolean checkRequired, Class<? extends Annotation>... filteringAnnotations) throws InstantiationException, AttributeBindingException { return set(object, values, checkRequired, filteringAnnotations.length > 0 ? new AllAnnotationsPresentPredicate( filteringAnnotations) : Predicates.<Field> alwaysTrue()); }