Total Complexity | 2 |
Total Lines | 12 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | package com.hltech.pact.gen.domain.client.annotation; |
||
8 | public class HandlersFactory { |
||
9 | |||
10 | List<AnnotatedMethodHandler> createHandlers(List<Class<?>> classes) |
||
11 | throws IllegalAccessException, InstantiationException { |
||
12 | |||
13 | List<AnnotatedMethodHandler> result = Lists.newArrayList(); |
||
14 | |||
15 | for (Class<?> handlerClass : classes) { |
||
16 | result.add((AnnotatedMethodHandler) handlerClass.newInstance()); |
||
17 | } |
||
18 | |||
19 | return result; |
||
20 | } |
||
22 |