public abstract class DefinitionMetadataBuilder extends Object
DefinitionProvider
. For example,
the name() method could be called several times before a provider is registered in a Registry
.
They are also responsible for determining the referenceId string used by the registries. Implement your own, or use
one of the static factory methods.usingModuleAndRelativePathAsId()
,
usingNameAsId()
Modifier and Type | Class and Description |
---|---|
static class |
DefinitionMetadataBuilder.DefinitionMetadataImpl
Implementation of
DefinitionMetadata . |
Modifier | Constructor and Description |
---|---|
protected |
DefinitionMetadataBuilder() |
public static DefinitionMetadataBuilder usingModuleAndRelativePathAsId()
public static DefinitionMetadataBuilder usingNameAsId()
public DefinitionMetadataBuilder type(DefinitionType type)
public DefinitionMetadataBuilder name(String name)
public DefinitionMetadataBuilder module(String module)
public DefinitionMetadataBuilder location(String location)
public DefinitionMetadataBuilder relativeLocation(String relativeLocation)
public DefinitionMetadataBuilder configurationSourceType(ConfigurationSourceType configurationSourceType)
public DefinitionMetadataBuilder deprecation(Deprecation deprecation)
public DefinitionMetadata build()
protected abstract String buildReferenceId()
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.