restx.datetime.ClockModuleFactoryFactoryMachine Maven / Gradle / Ivy
package restx.datetime;
import com.google.common.collect.ImmutableSet;
import restx.factory.*;
import restx.datetime.ClockModuleFactory;
@Machine
public class ClockModuleFactoryFactoryMachine extends DefaultFactoryMachine {
private static final ClockModuleFactory module = new ClockModuleFactory();
public ClockModuleFactoryFactoryMachine() {
super(1000, new MachineEngine[] {
new StdMachineEngine(Name.of(java.time.Clock.class, "clock"), 1000, BoundlessComponentBox.FACTORY) {
@Override
public BillOfMaterials getBillOfMaterial() {
return new BillOfMaterials(ImmutableSet.>of(
));
}
@Override
public java.time.Clock doNewComponent(SatisfiedBOM satisfiedBOM) {
return module.clock(
);
}
},
});
}
}