Examples of FactoryParameterParameterValue


Examples of com.softwaremill.common.cdi.autofactory.extension.parameter.FactoryParameterParameterValue

        List<? extends AnnotatedParameter<?>> constructorParameters = constructor.getParameters();
        ParameterValue[] constructorParameterValues = new ParameterValue[constructorParameters.size()];

        for (int i = 0; i < constructorParameters.size(); i++) {
            AnnotatedParameter<?> parameter = constructorParameters.get(i);
            constructorParameterValues[i] = new FactoryParameterParameterValue(
                    methodParameterIndexer.getIndexForArgument(parameter.getBaseType()));
        }

        return constructorParameterValues;
    }
View Full Code Here

Examples of com.softwaremill.common.cdi.autofactory.extension.parameter.FactoryParameterParameterValue

        return constructorParameterValues;
    }

    private ParameterValue createParameterValue(AnnotatedParameter parameter) {
        if (parameter.getAnnotation(FactoryParameter.class) != null) {
            return new FactoryParameterParameterValue(methodParameterIndexer.getIndexForArgument(parameter.getBaseType()));
        } else {
            return new BeanManagerParameterValue(parameter.getBaseType(), qualifierAnnotationsFilter.filter(parameter.getAnnotations()));
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.