com.hltech.pact.gen.domain.client.annotation.HandlersFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pact-gen Show documentation
Show all versions of pact-gen Show documentation
Automated generation of pact files
The newest version!
package com.hltech.pact.gen.domain.client.annotation;
import com.hltech.pact.gen.domain.client.annotation.handlers.AnnotatedMethodHandler;
import java.util.ArrayList;
import java.util.List;
public class HandlersFactory {
List createHandlers(List> classes)
throws IllegalAccessException, InstantiationException {
List result = new ArrayList<>();
for (Class> handlerClass : classes) {
result.add((AnnotatedMethodHandler) handlerClass.newInstance());
}
return result;
}
}