org.springframework.beans.factory.parsing
Class ComponentRegistrarAdapter
java.lang.Object
org.springframework.beans.factory.parsing.ComponentRegistrarAdapter
- All Implemented Interfaces:
- ComponentRegistrar
public class ComponentRegistrarAdapter
- extends Object
- implements ComponentRegistrar
TODO SPR-7420: document
Adapter is necessary as opposed to having ParserContext
implement ComponentRegistrar directly due to tooling issues.
STS may ship with a version of Spring older that 3.1 (when
this type was introduced), and will run into
IncompatibleClassChangeErrors when it's (3.0.5) ParserContext
tries to mix with our (3.1.0) BeanDefinitionParser
(and related) infrastructure.
- Since:
- 3.1
- Author:
- Chris Beams
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComponentRegistrarAdapter
public ComponentRegistrarAdapter(ParserContext parserContext)
registerWithGeneratedName
public String registerWithGeneratedName(BeanDefinition beanDefinition)
- Specified by:
registerWithGeneratedName in interface ComponentRegistrar
registerBeanComponent
public void registerBeanComponent(BeanComponentDefinition component)
- Specified by:
registerBeanComponent in interface ComponentRegistrar
registerComponent
public void registerComponent(ComponentDefinition component)
- Specified by:
registerComponent in interface ComponentRegistrar