Examples of ArgumentDescription


Examples of org.constretto.internal.introspect.ArgumentDescription

            final Constructor<?> resolvedConstructor = configurableConstructorCache.get(beanType);
            if (resolvedConstructor != null) {
                final ConstructorArgumentValues constructorArgumentValues = beanDefinition.getConstructorArgumentValues();
                final ArgumentDescription[] argumentDescriptions = ArgumentDescriptionFactory.create(resolvedConstructor).resolveParameters();
                for (int i = 0; i < argumentDescriptions.length; i++) {
                    ArgumentDescription argumentDescription = argumentDescriptions[i];
                    if (!constructorArgumentValues.hasIndexedArgumentValue(i)) {
                        final String keyName = argumentDescription.constrettoConfigurationKeyCandidate();
                        if (configuration.hasValue(keyName)) {
                            constructorArgumentValues.addIndexedArgumentValue(i,
                                                                              configuration.evaluateTo(
                                                                                      argumentDescription.getType(),
                                                                                      keyName));
                        }
                    }
                }
            }
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.