org.springframework.context.config
Class AbstractSpecificationExecutor<S extends FeatureSpecification>

java.lang.Object
  extended by org.springframework.context.config.AbstractSpecificationExecutor<S>
All Implemented Interfaces:
FeatureSpecificationExecutor

public abstract class AbstractSpecificationExecutor<S extends FeatureSpecification>
extends Object
implements FeatureSpecificationExecutor

TODO SPR-7420: document

Since:
3.1
Author:
Chris Beams

Constructor Summary
AbstractSpecificationExecutor()
           
 
Method Summary
protected abstract  void doExecute(S specification, SpecificationContext specificationContext)
          Execute the given specification, usually resulting in registration of bean definitions against a bean factory.
 void execute(FeatureSpecification spec, SpecificationContext specificationContext)
          Execute the given specification, usually resulting in registration of bean definitions against a bean factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSpecificationExecutor

public AbstractSpecificationExecutor()
Method Detail

execute

public final void execute(FeatureSpecification spec,
                          SpecificationContext specificationContext)
Execute the given specification, usually resulting in registration of bean definitions against a bean factory.

This implementation validates the given specification and delegates it to #doExecute(FeatureSpecification) only if valid.

Specified by:
execute in interface FeatureSpecificationExecutor

doExecute

protected abstract void doExecute(S specification,
                                  SpecificationContext specificationContext)
Execute the given specification, usually resulting in registration of bean definitions against a bean factory.

Parameters:
specification - the validated specification