@Deprecated // Should use addAnnotation() instead public void addTypeAnnotation(final AnnotationMetadata annotationMetadata) { addAnnotation(annotationMetadata); }
/** * Ensures that the governor is annotated with the given annotation * * @param AnnotationMetadataBuilder the annotation to use(required) * @since 2.0 */ protected final void ensureGovernorIsAnnotated(final AnnotationMetadataBuilder annotationMetadata) { if (governorTypeDetails.getAnnotation(annotationMetadata.getAnnotationType()) == null) { builder.addAnnotation(annotationMetadata); } }
public ConfigurableMetadata(final String identifier, final JavaType aspectName, final PhysicalTypeMetadata governorPhysicalTypeMetadata) { super(identifier, aspectName, governorPhysicalTypeMetadata); Validate.isTrue(isValid(identifier), "Metadata identification string '%s' does not appear to be a valid", identifier); if (!isValid()) { return; } builder.addAnnotation(getConfigurableAnnotation()); // Create a representation of the desired output ITD itdTypeDetails = builder.build(); }
.addAnnotation(annotationValues.isMappedSuperclass() ? getTypeAnnotation(MAPPED_SUPERCLASS) : getEntityAnnotation()); builder.addAnnotation(getTableAnnotation()); builder.addAnnotation(getInheritanceAnnotation()); builder.addAnnotation(getDiscriminatorColumnAnnotation()); builder.addAnnotation(getEntityFormatAnnotation());
@Deprecated // Should use addAnnotation() instead public void addTypeAnnotation(final AnnotationMetadata annotationMetadata) { addAnnotation(annotationMetadata); }
builder.addAnnotation(getEmbeddableAnnotation());
/** * Ensures that the governor is annotated with the given annotation * * @param AnnotationMetadataBuilder the annotation to use(required) * @since 2.0 */ protected final void ensureGovernorIsAnnotated(final AnnotationMetadataBuilder annotationMetadata) { if (governorTypeDetails.getAnnotation(annotationMetadata.getAnnotationType()) == null) { builder.addAnnotation(annotationMetadata); } }
public ConfigurableMetadata(final String identifier, final JavaType aspectName, final PhysicalTypeMetadata governorPhysicalTypeMetadata) { super(identifier, aspectName, governorPhysicalTypeMetadata); Validate.isTrue(isValid(identifier), "Metadata identification string '%s' does not appear to be a valid", identifier); if (!isValid()) { return; } builder.addAnnotation(getConfigurableAnnotation()); // Create a representation of the desired output ITD itdTypeDetails = builder.build(); }
public WSExportExceptionMetadata(String identifier, JavaType aspectName, PhysicalTypeMetadata governorPhysicalTypeMetadata) { super(identifier, aspectName, governorPhysicalTypeMetadata); Validate.isTrue(isValid(identifier), "Metadata identification string '" + identifier + "' does not appear to be a valid"); if (!isValid()) { return; } // Create the metadata. AnnotationMetadata annotationMetadata = governorTypeDetails .getTypeAnnotation(new JavaType(GvNIXWebFault.class.getName())); // Add @javax.jws.WebFault annotation to ITD. AnnotationMetadata webFaultAnnotationMetadata = getTypeAnnotation(annotationMetadata); if (webFaultAnnotationMetadata != null) { builder.addAnnotation(webFaultAnnotationMetadata); } // Create a representation of the desired output ITD itdTypeDetails = builder.build(); }
builder.addAnnotation(webServiceAnnotationMetadata); AnnotationMetadata soapBindingAnnotationMetadata = getSoapBindingAnnotation(annotationMetadata); builder.addAnnotation(soapBindingAnnotationMetadata);
annotation, fields); for (AnnotationMetadata annotationMetadata : annotationTypeList) { builder.addAnnotation(annotationMetadata);
/** * {@inheritDoc} */ @Override public void addCustomArtifact(ItdTypeDetailsBuilder builder) { // Add @Audit if needed (includin in abstract class) if (governorTypeDetails.getAnnotation(AUDITED_ANNOTATION) == null) { builder.addAnnotation(new AnnotationMetadataBuilder( AUDITED_ANNOTATION)); } if (!context.isAbstractEntity()) { builder.addMethod(getAuditReaderStaticMethod()); builder.addMethod(getPropertyMethod()); builder.addMethod(getPropertyMethodWithWrapper()); } }
runWithBuilder.addClassAttribute("value", "org.springframework.test.context.junit4.SpringJUnit4ClassRunner"); builder.addAnnotation(runWithBuilder); new AnnotationMetadataBuilder(SpringJavaType.ACTIVE_PROFILES); activeProfilesBuilder.addStringAttribute("value", "dev"); builder.addAnnotation(activeProfilesBuilder); final AnnotationMetadataBuilder webAppConfigurationBuilder = new AnnotationMetadataBuilder(SpringJavaType.WEB_APP_CONFIGURATION); builder.addAnnotation(webAppConfigurationBuilder); final AnnotationMetadataBuilder springBootTestBuilder = new AnnotationMetadataBuilder(SpringJavaType.SPRING_BOOT_TEST); builder.addAnnotation(springBootTestBuilder);
.addAnnotation(annotationValues.isMappedSuperclass() ? getTypeAnnotation(MAPPED_SUPERCLASS) : getEntityAnnotation()); builder.addAnnotation(getTableAnnotation()); builder.addAnnotation(getInheritanceAnnotation()); builder.addAnnotation(getDiscriminatorColumnAnnotation()); builder.addAnnotation(getEntityFormatAnnotation());
builder.addAnnotation(getEmbeddableAnnotation());
builder.addAnnotation(new AnnotationMetadataBuilder( JpaJavaType.ENTITY)); values.add(new ClassAttributeValue(new JavaSymbolName("value"), revisionListenerType)); builder.addAnnotation(AnnotationMetadataBuilder.getInstance( REVISION_ENTITY, values));