Class AbstractComponentRegistry<R extends AbstractComponentRegistry<R>>

java.lang.Object
com.broadleafcommerce.metadata.dsl.registry.AbstractComponentRegistry<R>
All Implemented Interfaces:
ComponentRegistry<R>
Direct Known Subclasses:
DefaultComponentRegistry

public abstract class AbstractComponentRegistry<R extends AbstractComponentRegistry<R>> extends Object implements ComponentRegistry<R>
An abstract implementation of ComponentRegistry used for storing and retrieving Components.

This registry is typically configured as a bean during the auto-configuration of a Spring Boot application. In most cases, the initialize(List, List) method will be called shortly after instantiation to initialize the registry using a set of ComponentSource and FrameworkComponentSource beans. FrameworkComponentSource beans will be processed prior to the ComponentSource beans, which allows ComponentSource beans to potentially extend or modify the framework components.

Once the registry has been initialized by the component sources, the initialization will make a call to validateRegistry() in order to validate each and every component within the registry using ComponentValidatorManager. If isFailOnValidationError() is true, this will cause an IllegalStateException to be thrown.

Author:
Nick Crum (ncrum)