com.xlrit.gears.base.form.FallbackCompanion Maven / Gradle / Ivy
package com.xlrit.gears.base.form;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
import com.xlrit.gears.base.execution.Execution;
@Component @Order(Ordered.LOWEST_PRECEDENCE)
public class FallbackCompanion implements Companion {
@Override
public boolean forFormClass(Class extends Form> formClass) {
return true;
}
@Override
public Object getBasedOn(Execution execution) {
return null;
}
}