public static class TypeMetadataDescriptor.TypeMetadataDescriptorBuilder extends Object
TypeMetadataDescriptor
Modifier and Type | Method and Description |
---|---|
TypeMetadataDescriptor |
build()
Builds and creates the descriptor of the component.
|
TypeMetadataDescriptor.TypeMetadataDescriptorBuilder |
dynamic(boolean isDynamic)
Indicates that the type comes from a dynamic type resolver
|
TypeMetadataDescriptor.TypeMetadataDescriptorBuilder |
withType(MetadataType type)
Indicates that the component will be of type
|
public TypeMetadataDescriptor.TypeMetadataDescriptorBuilder withType(MetadataType type)
type
- of the component parameterMetadataType
public TypeMetadataDescriptor.TypeMetadataDescriptorBuilder dynamic(boolean isDynamic)
isDynamic
- whether or not the provided type comes from a dynamic type resolverMetadataType
public TypeMetadataDescriptor build()
Validates that the type is not null.
TypeMetadataDescriptor
with the metadata description of the component.IllegalArgumentException
- if type was not set during buildingCopyright © 2018. All rights reserved.