io.mateu.mdd.vaadin.controllers.firstLevel.ModuleController Maven / Gradle / Ivy
package io.mateu.mdd.vaadin.controllers.firstLevel;
import io.mateu.mdd.shared.interfaces.IModule;
import io.mateu.mdd.vaadin.components.app.views.firstLevel.FakeComponent;
import io.mateu.mdd.vaadin.controllers.secondLevel.ActionController;
import io.mateu.mdd.vaadin.navigation.ViewStack;
public class ModuleController extends ActionController {
private final IModule module;
public ModuleController(IModule module) {
this.module = module;
}
@Override
public Object apply(ViewStack stack, String path, String step, String cleanStep, String remaining) throws Throwable {
if ("".equals(step)) {
return module;
}
return super.apply(stack, path, step, cleanStep, remaining);
}
}