org.springframework.beans.factory.parsing
Class ComponentRegistrarAdapter

java.lang.Object
  extended by 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

Constructor Summary
ComponentRegistrarAdapter(ParserContext parserContext)
           
 
Method Summary
 void registerBeanComponent(BeanComponentDefinition component)
           
 void registerComponent(ComponentDefinition component)
           
 String registerWithGeneratedName(BeanDefinition beanDefinition)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentRegistrarAdapter

public ComponentRegistrarAdapter(ParserContext parserContext)
Method Detail

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