All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hltech.pact.gen.domain.client.annotation.HandlersFactory Maven / Gradle / Ivy

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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy