org.springframework.beans.factory.xml
Class ParserContext

java.lang.Object
  extended by org.springframework.beans.factory.xml.ParserContext

public final class ParserContext
extends Object

Context that gets passed along a bean definition parsing process, encapsulating all relevant configuration as well as state. Nested inside an XmlReaderContext.

Since:
2.0
Author:
Rob Harrop, Juergen Hoeller
See Also:
XmlReaderContext, BeanDefinitionParserDelegate

Constructor Summary
ParserContext(XmlReaderContext readerContext, BeanDefinitionParserDelegate delegate)
           
ParserContext(XmlReaderContext readerContext, BeanDefinitionParserDelegate delegate, BeanDefinition containingBeanDefinition)
           
 
Method Summary
 Object extractSource(Object sourceCandidate)
           
 BeanDefinition getContainingBeanDefinition()
           
 CompositeComponentDefinition getContainingComponent()
           
 BeanDefinitionParserDelegate getDelegate()
           
 XmlReaderContext getReaderContext()
           
 BeanDefinitionRegistry getRegistry()
           
 boolean isDefaultLazyInit()
           
 boolean isNested()
           
 void popAndRegisterContainingComponent()
           
 CompositeComponentDefinition popContainingComponent()
           
 void pushContainingComponent(CompositeComponentDefinition containingComponent)
           
 void registerBeanComponent(BeanComponentDefinition component)
           
 void registerComponent(ComponentDefinition component)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParserContext

public ParserContext(XmlReaderContext readerContext,
                     BeanDefinitionParserDelegate delegate)

ParserContext

public ParserContext(XmlReaderContext readerContext,
                     BeanDefinitionParserDelegate delegate,
                     BeanDefinition containingBeanDefinition)
Method Detail

getReaderContext

public final XmlReaderContext getReaderContext()

getRegistry

public final BeanDefinitionRegistry getRegistry()

getDelegate

public final BeanDefinitionParserDelegate getDelegate()

getContainingBeanDefinition

public final BeanDefinition getContainingBeanDefinition()

isNested

public final boolean isNested()

isDefaultLazyInit

public boolean isDefaultLazyInit()

extractSource

public Object extractSource(Object sourceCandidate)

getContainingComponent

public CompositeComponentDefinition getContainingComponent()

pushContainingComponent

public void pushContainingComponent(CompositeComponentDefinition containingComponent)

popContainingComponent

public CompositeComponentDefinition popContainingComponent()

popAndRegisterContainingComponent

public void popAndRegisterContainingComponent()

registerComponent

public void registerComponent(ComponentDefinition component)

registerBeanComponent

public void registerBeanComponent(BeanComponentDefinition component)


Copyright © 2002-2008 The Spring Framework.