/** * Creates a common target over a method param. */ public static Target ofMethodParam(final MethodParam methodParam, final Object object) { return new Target(object, methodParam.type(), methodParam.scopeData(), methodParam.mapperFunction(), VALUE_INSTANCE_CREATOR); } /**
final Class paramType = methodParam.type(); if (methodParam.annotationType() == null) { final ScopeData newScopeData = methodParam.scopeData().inspector().inspectClassScopesWithCache(paramType); paramTarget = Target.ofValue(createActionMethodArgument(paramType, action), newScopeData); else if (methodParam.annotationType() == Out.class) {
params[ndx] = new MethodParam( paramTypes[ndx], paramName,
/** * Creates a common target over a method param. */ public static Target ofMethodParam(final MethodParam methodParam, final Function<Class, Object> valueInstanceCreator) { return new Target(null, methodParam.type(), methodParam.scopeData(), methodParam.mapperFunction(), valueInstanceCreator); }