import org.onap.policy.aai.AaiConstants;
import org.onap.policy.controlloop.actorserviceprovider.impl.HttpActor;
import org.onap.policy.controlloop.actorserviceprovider.impl.HttpOperator;
+import org.onap.policy.controlloop.actorserviceprovider.parameters.HttpActorParams;
/**
* A&AI Actor.
*/
-public class AaiActorServiceProvider extends HttpActor {
+public class AaiActorServiceProvider extends HttpActor<HttpActorParams> {
public static final String NAME = AaiConstants.ACTOR_NAME;
/**
* Constructs the object.
*/
public AaiActorServiceProvider() {
- super(NAME);
+ super(NAME, HttpActorParams.class);
- addOperator(HttpOperator.makeOperator(NAME, AaiCustomQueryOperation.NAME,
- AaiCustomQueryOperation::new));
+ addOperator(new HttpOperator(NAME, AaiCustomQueryOperation.NAME, AaiCustomQueryOperation::new));
// add all "get" operators
for (String operation : AaiGetOperation.OPERATIONS) {
- addOperator(HttpOperator.makeOperator(NAME, operation, AaiGetOperation::new));
+ addOperator(new HttpOperator(NAME, operation, AaiGetOperation::new));
}
}
}