/** * Creates a new builder based on the given executable meta data. * * @param constrainedExecutable The base executable for this builder. This is the lowest * executable with a given signature within a type hierarchy. * @param constraintHelper the constraint helper * @param executableHelper the executable helper * @param beanClass the bean class * @param methodValidationConfiguration configuration instance for method validation behaviour */ public Builder( Class<?> beanClass, ConstrainedExecutable constrainedExecutable, ConstraintHelper constraintHelper, ExecutableHelper executableHelper, MethodValidationConfiguration methodValidationConfiguration) { super( beanClass, constraintHelper ); this.executableHelper = executableHelper; this.kind = constrainedExecutable.getKind(); this.executable = constrainedExecutable.getExecutable(); this.rules = new HashSet<MethodConfigurationRule>( methodValidationConfiguration.getConfiguredRuleSet() ); add( constrainedExecutable ); }
public Builder( Class<?> beanClass, ConstrainedExecutable constrainedExecutable, ConstraintHelper constraintHelper, ExecutableHelper executableHelper, TypeResolutionHelper typeResolutionHelper, ValueExtractorManager valueExtractorManager, ExecutableParameterNameProvider parameterNameProvider, MethodValidationConfiguration methodValidationConfiguration) { super( beanClass, constraintHelper, typeResolutionHelper, valueExtractorManager ); this.executableHelper = executableHelper; this.parameterNameProvider = parameterNameProvider; this.kind = constrainedExecutable.getKind(); this.executable = constrainedExecutable.getExecutable(); this.rules = methodValidationConfiguration.getConfiguredRuleSet(); this.isGetterMethod = constrainedExecutable.isGetterMethod(); add( constrainedExecutable ); }