Class AnnotationConfigurationImpl.BuilderImpl
java.lang.Object
org.infinispan.protostream.config.impl.AnnotationConfigurationImpl.BuilderImpl
- All Implemented Interfaces:
AnnotationConfiguration.Builder
- Enclosing class:
AnnotationConfigurationImpl
static final class AnnotationConfigurationImpl.BuilderImpl
extends Object
implements AnnotationConfiguration.Builder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AnnotationMetadataCreator<?, ? extends AnnotatedDescriptor> private final Map<String, AnnotationAttributeConfigurationImpl.BuilderImpl> private final StringThe annotation name.private Stringprivate StringThe name of the containing annotation, if this annotation is repeatable.private final AnnotationElement.AnnotationTarget[] -
Constructor Summary
ConstructorsConstructorDescriptionBuilderImpl(ConfigurationImpl.BuilderImpl.AnnotationsConfigBuilderImpl parentBuilder, String name, AnnotationElement.AnnotationTarget[] target) -
Method Summary
Modifier and TypeMethodDescriptionannotation(String annotationName, AnnotationElement.AnnotationTarget... target) Create a new annotation with the given name and return its builder to continue configuring it.Add a new attribute with the given name to the current annotation and return the builder to continue to configure this attribute.build()(package private) AnnotationConfigurationImplprivate static voidcheckValidIdentifier(String str, String what) metadataCreator(AnnotationMetadataCreator<?, ? extends AnnotatedDescriptor> annotationMetadataCreator) Attach a metadata creator for this annotation and return the same builder.packageName(String packageName) repeatable(String containingAnnotationName)
-
Field Details
-
parentBuilder
-
name
The annotation name. -
packageName
-
target
-
attributeBuilders
-
annotationMetadataCreator
-
repeatable
The name of the containing annotation, if this annotation is repeatable.
-
-
Constructor Details
-
BuilderImpl
BuilderImpl(ConfigurationImpl.BuilderImpl.AnnotationsConfigBuilderImpl parentBuilder, String name, AnnotationElement.AnnotationTarget[] target)
-
-
Method Details
-
checkValidIdentifier
-
packageName
- Specified by:
packageNamein interfaceAnnotationConfiguration.Builder
-
attribute
Description copied from interface:AnnotationConfiguration.BuilderAdd a new attribute with the given name to the current annotation and return the builder to continue to configure this attribute.- Specified by:
attributein interfaceAnnotationConfiguration.Builder
-
metadataCreator
public AnnotationConfiguration.Builder metadataCreator(AnnotationMetadataCreator<?, ? extends AnnotatedDescriptor> annotationMetadataCreator) Description copied from interface:AnnotationConfiguration.BuilderAttach a metadata creator for this annotation and return the same builder.- Specified by:
metadataCreatorin interfaceAnnotationConfiguration.Builder
-
repeatable
- Specified by:
repeatablein interfaceAnnotationConfiguration.Builder
-
annotation
public AnnotationConfiguration.Builder annotation(String annotationName, AnnotationElement.AnnotationTarget... target) Description copied from interface:AnnotationConfiguration.BuilderCreate a new annotation with the given name and return its builder to continue configuring it.- Specified by:
annotationin interfaceAnnotationConfiguration.Builder
-
buildAnnotationConfiguration
AnnotationConfigurationImpl buildAnnotationConfiguration() -
build
- Specified by:
buildin interfaceAnnotationConfiguration.Builder
-