Package org.givwenzen.reflections

Examples of org.givwenzen.reflections.Reflections


*/
public class CustomParserFinder implements ICustomParserFinder {

    @Override
    public void addCustomParsers(List<MethodParameterParser> accumulatedParsers) {
        Reflections reflections = new ReflectionsBuilder()
                .basePackage("bdd.parse.")
                .subTypeScanner()
                .build();
        Set<Class<? extends MethodParameterParser>> classes = reflections.getSubTypesOf(MethodParameterParser.class);
        for (Class<? extends MethodParameterParser> aClass : classes) {
            try {
                accumulatedParsers.add(aClass.newInstance());
            } catch (InstantiationException e) {
                throw new GivWenZenException(
View Full Code Here

TOP

Related Classes of org.givwenzen.reflections.Reflections

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.