BeanRegistrationAotProcessor that adds additional hints
required for ConstraintValidators.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | BeanValidationBeanRegistrationAotProcessor.BeanValidationDelegate
Inner class to avoid a hard dependency on the Bean Validation API at runtime. |
| Modifier and Type | Field and Description |
|---|---|
| private static final boolean | |
| private static final Log |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public BeanRegistrationAotContribution | processAheadOfTime(RegisteredBean
the registered bean to process registeredBean)Implements org. RegisteredBean instance ahead-of-time and
return a contribution or null.
|
| beanValidationPresent | back to summary |
|---|---|
| private static final boolean beanValidationPresent | |
| logger | back to summary |
|---|---|
| private static final Log logger | |
| BeanValidationBeanRegistrationAotProcessor | back to summary |
|---|---|
| pack-priv BeanValidationBeanRegistrationAotProcessor() | |
| processAheadOfTime | back to summary |
|---|---|
| public BeanRegistrationAotContribution processAheadOfTime(RegisteredBean registeredBean) Implements org. Doc from org. Process the given Processors are free to use any techniques they like to analyze the given instance. Most typically use reflection to find fields or methods to use in the contribution. Contributions typically generate source code or resource files that can be used when the AOT optimized application runs.
If the given instance isn't relevant to the processor, it should return a
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Collection |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | applyTo(GenerationContext
the generation context generationContext, BeanRegistrationCode the generated registration beanRegistrationCode)Implements org. BeanRegistrationCode.
|
| constraintDescriptors | back to summary |
|---|---|
| private final Collection<ConstraintDescriptor<?>> constraintDescriptors | |
| AotContribution | back to summary |
|---|---|
| public AotContribution(Collection<ConstraintDescriptor<?>> constraintDescriptors) | |
| applyTo | back to summary |
|---|---|
| public void applyTo(GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode) Implements org. Doc from org. Apply this contribution to the given
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static Validator | |
| public static BeanRegistrationAotContribution |
| validator | back to summary |
|---|---|
| private static final Validator validator
| |
| BeanValidationDelegate | back to summary |
|---|---|
| private BeanValidationDelegate() | |
| getValidatorIfAvailable | back to summary |
|---|---|
private static Validator getValidatorIfAvailable()
| |
| processAheadOfTime | back to summary |
|---|---|
public static BeanRegistrationAotContribution processAheadOfTime(RegisteredBean registeredBean)
| |