restx.log.admin.LogAdminModuleFactoryMachine Maven / Gradle / Ivy
The newest version!
package restx.log.admin;
import com.google.common.collect.ImmutableSet;
import restx.factory.*;
import restx.log.admin.LogAdminModule;
@Machine
public class LogAdminModuleFactoryMachine extends DefaultFactoryMachine {
private static final LogAdminModule module = new LogAdminModule();
public LogAdminModuleFactoryMachine() {
super(0, new MachineEngine[] {
new StdMachineEngine(Name.of(restx.admin.AdminPage.class, "Log"), 0, BoundlessComponentBox.FACTORY) {
@Override
public BillOfMaterials getBillOfMaterial() {
return new BillOfMaterials(ImmutableSet.>of(
));
}
@Override
public restx.admin.AdminPage doNewComponent(SatisfiedBOM satisfiedBOM) {
return module.getLogAdminPage(
);
}
},
new StdMachineEngine(Name.of(restx.ResourcesRoute.class, "LogUIRoute"), 0, BoundlessComponentBox.FACTORY) {
@Override
public BillOfMaterials getBillOfMaterial() {
return new BillOfMaterials(ImmutableSet.>of(
));
}
@Override
public restx.ResourcesRoute doNewComponent(SatisfiedBOM satisfiedBOM) {
return module.getLogResourcesRoute(
);
}
},
});
}
}