接口的使用
org.springframework.beans.factory.xml.BeanDefinitionParser
使用BeanDefinitionParser的程序包 程序包 说明 org.springframework.beans.factory.xml Contains an abstract XML-basedBeanFactoryimplementation, including a standard "spring-beans" XSD.org.springframework.context.annotation Annotation support for the Application Context, including JSR-250 "common" annotations, component-scanning, and Java-based metadata for creating Spring-managed objects.org.springframework.scheduling.config Support package for declarative scheduling configuration, with XML schema being the primary configuration format.org.springframework.transaction.config Support package for declarative transaction configuration, with XML schema being the primary configuration format.org.springframework.web.servlet.config Defines the XML configuration namespace for Spring MVC.org.springframework.beans.factory.xml中BeanDefinitionParser的使用
实现BeanDefinitionParser的org.springframework.beans.factory.xml中的类 修饰符和类型 类 说明 classAbstractBeanDefinitionParserAbstractBeanDefinitionParserimplementation providing a number of convenience methods and atemplate methodthat subclasses must override to provide the actual parsing logic.classAbstractSimpleBeanDefinitionParserConvenient base class for when there exists a one-to-one mapping between attribute names on the element that is to be parsed and the property names on theClassbeing configured.classAbstractSingleBeanDefinitionParserBase class for thoseBeanDefinitionParserimplementations that need to parse and define just a singleBeanDefinition.参数类型为BeanDefinitionParser的org.springframework.beans.factory.xml中的方法 修饰符和类型 方法 说明 protected voidNamespaceHandlerSupport. registerBeanDefinitionParser(String elementName, BeanDefinitionParser parser)Subclasses can call this to register the suppliedBeanDefinitionParserto handle the specified element.org.springframework.context.annotation中BeanDefinitionParser的使用
实现BeanDefinitionParser的org.springframework.context.annotation中的类 修饰符和类型 类 说明 classAnnotationConfigBeanDefinitionParserParser for the <context:annotation-config/> element.classComponentScanBeanDefinitionParserParser for the<context:component-scan/>element.org.springframework.scheduling.config中BeanDefinitionParser的使用
实现BeanDefinitionParser的org.springframework.scheduling.config中的类 修饰符和类型 类 说明 classAnnotationDrivenBeanDefinitionParserParser for the 'annotation-driven' element of the 'task' namespace.classExecutorBeanDefinitionParserParser for the 'executor' element of the 'task' namespace.classScheduledTasksBeanDefinitionParserParser for the 'scheduled-tasks' element of the scheduling namespace.classSchedulerBeanDefinitionParserParser for the 'scheduler' element of the 'task' namespace.org.springframework.transaction.config中BeanDefinitionParser的使用
实现BeanDefinitionParser的org.springframework.transaction.config中的类 修饰符和类型 类 说明 classJtaTransactionManagerBeanDefinitionParserParser for the <tx:jta-transaction-manager/> XML configuration element, autodetecting WebLogic and WebSphere servers and exposing the correspondingJtaTransactionManagersubclass.org.springframework.web.servlet.config中BeanDefinitionParser的使用
实现BeanDefinitionParser的org.springframework.web.servlet.config中的类 修饰符和类型 类 说明 classCorsBeanDefinitionParserBeanDefinitionParserthat parses acorselement in order to set the CORS configuration in the various {AbstractHandlerMapping} beans created byAnnotationDrivenBeanDefinitionParser,ResourcesBeanDefinitionParserandViewControllerBeanDefinitionParser.classFreeMarkerConfigurerBeanDefinitionParserParse the<mvc:freemarker-configurer>MVC namespace element and registerFreeMarkerConfigurerbean.classGroovyMarkupConfigurerBeanDefinitionParserParse the<mvc:groovy-configurer>MVC namespace element and register aGroovyConfigurerbean.classScriptTemplateConfigurerBeanDefinitionParserParse the<mvc:script-template-configurer>MVC namespace element and register aScriptTemplateConfigurerbean.classTilesConfigurerBeanDefinitionParserParse the<mvc:tiles-configurer>MVC namespace element and register a correspondingTilesConfigurerbean.classViewResolversBeanDefinitionParserParse theview-resolversMVC namespace element and registerViewResolverbean definitions.