public abstract class

AbstractFeatureSpecification

extends Object
implements SourceAwareSpecification
java.lang.Object
   ↳ org.springframework.context.config.AbstractFeatureSpecification
Known Direct Subclasses

Class Overview

TODO SPR-7420: document

Summary

Fields
protected Class<? extends FeatureSpecificationExecutor> executorType
Protected Constructors
AbstractFeatureSpecification(Class<? extends FeatureSpecificationExecutor> executorType)
Public Methods
void execute(SpecificationContext specificationContext)
Execute this specification instance, carrying out the instructions specified within.
Object source()
AbstractFeatureSpecification source(Object source)
AbstractFeatureSpecification sourceName(String sourceName)
String sourceName()
final boolean validate(ProblemReporter problemReporter)
Validate this specification instance to ensure all required properties have been set, including checks on mutually exclusive or mutually dependent properties.
Protected Methods
abstract void doValidate(ProblemCollector problems)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.context.config.FeatureSpecification
From interface org.springframework.context.config.SourceAwareSpecification

Fields

protected Class<? extends FeatureSpecificationExecutor> executorType

Protected Constructors

protected AbstractFeatureSpecification (Class<? extends FeatureSpecificationExecutor> executorType)

Public Methods

public void execute (SpecificationContext specificationContext)

Execute this specification instance, carrying out the instructions specified within. Should work by delegating to an underlying FeatureSpecificationExecutor for proper separation of concerns.

public Object source ()

public AbstractFeatureSpecification source (Object source)

public AbstractFeatureSpecification sourceName (String sourceName)

public String sourceName ()

public final boolean validate (ProblemReporter problemReporter)

Validate this specification instance to ensure all required properties have been set, including checks on mutually exclusive or mutually dependent properties. May in some cases modify the state of the specification e.g., instantiating types specified as strings.

Returns
  • whether any problems occurred during validation

Protected Methods

protected abstract void doValidate (ProblemCollector problems)