@Override public ConstructorConstraintMappingContext constructor(Class<?>... parameterTypes) { Constructor<C> constructor = run( GetDeclaredConstructor.action( beanClass, parameterTypes ) ); if ( constructor == null || constructor.getDeclaringClass() != beanClass ) { throw LOG.getBeanDoesNotContainConstructorException( beanClass, parameterTypes ); } if ( configuredMembers.contains( constructor ) ) { throw LOG.getConstructorHasAlreadyBeConfiguredViaProgrammaticApiException( beanClass, ExecutableHelper.getExecutableAsString( beanClass.getSimpleName(), parameterTypes ) ); } ConstructorConstraintMappingContextImpl context = new ConstructorConstraintMappingContextImpl( this, constructor ); configuredMembers.add( constructor ); executableContexts.add( context ); return context; }
@Override public ConstructorConstraintMappingContext constructor(Class<?>... parameterTypes) { Constructor<C> constructor = run( GetDeclaredConstructor.action( beanClass, parameterTypes ) ); if ( constructor == null || constructor.getDeclaringClass() != beanClass ) { throw log.getBeanDoesNotContainConstructorException( beanClass, Arrays.asList( parameterTypes ) ); } if ( configuredMembers.contains( constructor ) ) { throw log.getConstructorHasAlreadyBeConfiguredViaProgrammaticApiException( beanClass, ExecutableElement.getExecutableAsString( beanClass.getSimpleName(), parameterTypes ) ); } ConstructorConstraintMappingContextImpl context = new ConstructorConstraintMappingContextImpl( this, constructor ); configuredMembers.add( constructor ); executableContexts.add( context ); return context; }
throw LOG.getBeanDoesNotContainConstructorException( beanClass, parameterTypes
throw log.getBeanDoesNotContainConstructorException( beanClass, constructorParameterTypes