com.talk2object.plum.viewgeneration.viewbuilder.AbstractDelegateViewBuilder Maven / Gradle / Ivy
package com.talk2object.plum.viewgeneration.viewbuilder;
import com.talk2object.plum.interaction.application.PlumApplicationContextUtils;
import com.talk2object.plum.view.component.Component;
import com.talk2object.plum.viewgeneration.AbstractSimpleViewBuilder;
import com.talk2object.plum.viewgeneration.ViewBuildContext;
import com.talk2object.plum.viewgeneration.ViewFactory;
public abstract class AbstractDelegateViewBuilder extends AbstractSimpleViewBuilder {
protected abstract Class getDelegateModelClass();
@Override
public Component build(Object model, ViewBuildContext context) {
ViewFactory factory = PlumApplicationContextUtils.getViewFactory();
return factory.create(model, getDelegateModelClass(), getViewClass(),
context);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy