use of org.linkki.core.binding.dispatcher.BehaviorDependentDispatcher in project linkki by linkki-framework.
the class PropertyDispatcherFactory method createDispatcherChain.
public PropertyDispatcher createDispatcherChain(Object pmo, BindingDescriptor bindingDescriptor, PropertyBehaviorProvider behaviorProvider) {
requireNonNull(pmo, "pmo must not be null");
requireNonNull(bindingDescriptor, "bindingDescriptor must not be null");
requireNonNull(behaviorProvider, "behaviorProvider must not be null");
// @formatter:off
String modelPropertyName = bindingDescriptor.getModelPropertyName();
String modelObjectName = bindingDescriptor.getModelObjectName();
String pmoPropertyName = bindingDescriptor.getPmoPropertyName();
ExceptionPropertyDispatcher exceptionDispatcher = newExceptionDispatcher(pmo, modelObjectName, pmoPropertyName);
ReflectionPropertyDispatcher reflectionDispatcher = newReflectionDispatcher(pmo, pmoPropertyName, modelObjectName, modelPropertyName, exceptionDispatcher);
StaticValueDispatcher bindingAnnotationDispatcher = new StaticValueDispatcher(reflectionDispatcher);
PropertyDispatcher customDispatchers = createCustomDispatchers(pmo, bindingDescriptor, bindingAnnotationDispatcher);
return new BehaviorDependentDispatcher(customDispatchers, behaviorProvider);
// @formatter:on
}
use of org.linkki.core.binding.dispatcher.BehaviorDependentDispatcher in project linkki by linkki-framework.
the class PropertyDispatcherFactory method createDispatcherChain.
public PropertyDispatcher createDispatcherChain(ButtonPmo buttonPmo, PropertyBehaviorProvider behaviorProvider) {
requireNonNull(buttonPmo, "buttonPmo must not be null");
requireNonNull(behaviorProvider, "behaviorProvider must not be null");
// @formatter:off
String modelObjectName = ModelObject.DEFAULT_NAME;
ExceptionPropertyDispatcher exceptionDispatcher = newExceptionDispatcher(buttonPmo, modelObjectName, StringUtils.EMPTY);
ReflectionPropertyDispatcher reflectionDispatcher = newReflectionDispatcher(buttonPmo, StringUtils.EMPTY, modelObjectName, StringUtils.EMPTY, exceptionDispatcher);
@SuppressWarnings("deprecation") org.linkki.core.binding.dispatcher.ButtonPmoDispatcher buttonPmoDispatcher = new org.linkki.core.binding.dispatcher.ButtonPmoDispatcher(reflectionDispatcher);
return new BehaviorDependentDispatcher(buttonPmoDispatcher, behaviorProvider);
// @formatter:on
}
Aggregations