站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 2.0.5 API 文档英文版

ParserContext (Spring Framework API 2.0) - Spring Framework 2.0.5 API 文档英文版

The Spring Framework

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 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)

The Spring Framework

Copyright © 2002-2007 The Spring Framework.