samplest.hello.HelloResourceFactoryMachine Maven / Gradle / Ivy
package samplest.hello;
import com.google.common.collect.ImmutableSet;
import restx.factory.*;
import samplest.hello.HelloResource;
@Machine
public class HelloResourceFactoryMachine extends SingleNameFactoryMachine {
public static final Name NAME = Name.of(samplest.hello.HelloResource.class, "HelloResource");
public HelloResourceFactoryMachine() {
super(0, new StdMachineEngine(NAME, 0, BoundlessComponentBox.FACTORY) {
@Override
public BillOfMaterials getBillOfMaterial() {
return new BillOfMaterials(ImmutableSet.>of(
));
}
@Override
protected samplest.hello.HelloResource doNewComponent(SatisfiedBOM satisfiedBOM) {
return new HelloResource(
);
}
});
}
}