类的使用
org.springframework.beans.factory.BeanDefinitionStoreException
使用BeanDefinitionStoreException的程序包 程序包 说明 org.springframework.beans.factory.config SPI interfaces and configuration-related convenience classes for bean factories.org.springframework.beans.factory.groovy Support package for Groovy-based bean definitions.org.springframework.beans.factory.parsing Support infrastructure for bean definition parsing.org.springframework.beans.factory.support Classes supporting theorg.springframework.beans.factorypackage.org.springframework.beans.factory.xml Contains an abstract XML-basedBeanFactoryimplementation, including a standard "spring-beans" XSD.org.springframework.context.support Classes supporting the org.springframework.context package, such as abstract base classes for ApplicationContext implementations and a MessageSource implementation.org.springframework.beans.factory.config中BeanDefinitionStoreException的使用
抛出BeanDefinitionStoreException的org.springframework.beans.factory.config中的方法 修饰符和类型 方法 说明 voidConfigurableBeanFactory. registerAlias(String beanName, String alias)Given a bean name, create an alias.org.springframework.beans.factory.groovy中BeanDefinitionStoreException的使用
抛出BeanDefinitionStoreException的org.springframework.beans.factory.groovy中的方法 修饰符和类型 方法 说明 intGroovyBeanDefinitionReader. loadBeanDefinitions(Resource resource)Load bean definitions from the specified Groovy script or XML file.intGroovyBeanDefinitionReader. loadBeanDefinitions(EncodedResource encodedResource)Load bean definitions from the specified Groovy script or XML file.org.springframework.beans.factory.parsing中BeanDefinitionStoreException的使用
org.springframework.beans.factory.parsing中BeanDefinitionStoreException的子类 修饰符和类型 类 说明 classBeanDefinitionParsingExceptionException thrown when a bean definition reader encounters an error during the parsing process.org.springframework.beans.factory.support中BeanDefinitionStoreException的使用
org.springframework.beans.factory.support中BeanDefinitionStoreException的子类 修饰符和类型 类 说明 classBeanDefinitionOverrideExceptionSubclass ofBeanDefinitionStoreExceptionindicating an invalid override attempt: typically registering a new definition for the same bean name whileDefaultListableBeanFactory.isAllowBeanDefinitionOverriding()isfalse.抛出BeanDefinitionStoreException的org.springframework.beans.factory.support中的方法 修饰符和类型 方法 说明 protected voidAbstractBeanFactory. checkMergedBeanDefinition(RootBeanDefinition mbd, String beanName, Object[] args)Check the given merged bean definition, potentially throwing validation exceptions.static StringBeanDefinitionReaderUtils. generateBeanName(BeanDefinition beanDefinition, BeanDefinitionRegistry registry)Generate a bean name for the given top-level bean definition, unique within the given bean factory.static StringBeanDefinitionReaderUtils. generateBeanName(BeanDefinition definition, BeanDefinitionRegistry registry, boolean isInnerBean)Generate a bean name for the given bean definition, unique within the given bean factory.protected RootBeanDefinitionAbstractBeanFactory. getMergedBeanDefinition(String beanName, BeanDefinition bd)Return a RootBeanDefinition for the given top-level bean, by merging with the parent if the given bean's definition is a child bean definition.protected RootBeanDefinitionAbstractBeanFactory. getMergedBeanDefinition(String beanName, BeanDefinition bd, BeanDefinition containingBd)Return a RootBeanDefinition for the given bean, by merging with the parent if the given bean's definition is a child bean definition.intAbstractBeanDefinitionReader. loadBeanDefinitions(String location)intAbstractBeanDefinitionReader. loadBeanDefinitions(String... locations)intAbstractBeanDefinitionReader. loadBeanDefinitions(String location, Set<Resource> actualResources)Load bean definitions from the specified resource location.intAbstractBeanDefinitionReader. loadBeanDefinitions(Resource... resources)intBeanDefinitionReader. loadBeanDefinitions(String location)Load bean definitions from the specified resource location.intBeanDefinitionReader. loadBeanDefinitions(String... locations)Load bean definitions from the specified resource locations.intBeanDefinitionReader. loadBeanDefinitions(Resource resource)Load bean definitions from the specified resource.intBeanDefinitionReader. loadBeanDefinitions(Resource... resources)Load bean definitions from the specified resources.intPropertiesBeanDefinitionReader. loadBeanDefinitions(Resource resource)Load bean definitions from the specified properties file, using all property keys (i.e. not filtering by prefix).intPropertiesBeanDefinitionReader. loadBeanDefinitions(Resource resource, String prefix)Load bean definitions from the specified properties file.intPropertiesBeanDefinitionReader. loadBeanDefinitions(EncodedResource encodedResource)Load bean definitions from the specified properties file.intPropertiesBeanDefinitionReader. loadBeanDefinitions(EncodedResource encodedResource, String prefix)Load bean definitions from the specified properties file.static voidBeanDefinitionReaderUtils. registerBeanDefinition(BeanDefinitionHolder definitionHolder, BeanDefinitionRegistry registry)Register the given bean definition with the given bean factory.voidBeanDefinitionRegistry. registerBeanDefinition(String beanName, BeanDefinition beanDefinition)Register a new bean definition with this registry.voidDefaultListableBeanFactory. registerBeanDefinition(String beanName, BeanDefinition beanDefinition)voidSimpleBeanDefinitionRegistry. registerBeanDefinition(String beanName, BeanDefinition beanDefinition)intPropertiesBeanDefinitionReader. registerBeanDefinitions(ResourceBundle rb)Register bean definitions contained in a resource bundle, using all property keys (i.e. not filtering by prefix).intPropertiesBeanDefinitionReader. registerBeanDefinitions(ResourceBundle rb, String prefix)Register bean definitions contained in a ResourceBundle.static StringBeanDefinitionReaderUtils. registerWithGeneratedName(AbstractBeanDefinition definition, BeanDefinitionRegistry registry)Register the given bean definition with a generated name, unique within the given bean factory.org.springframework.beans.factory.xml中BeanDefinitionStoreException的使用
org.springframework.beans.factory.xml中BeanDefinitionStoreException的子类 修饰符和类型 类 说明 classXmlBeanDefinitionStoreExceptionXML-specific BeanDefinitionStoreException subclass that wraps aSAXException, typically aSAXParseExceptionwhich contains information about the error location.抛出BeanDefinitionStoreException的org.springframework.beans.factory.xml中的方法 修饰符和类型 方法 说明 protected intXmlBeanDefinitionReader. doLoadBeanDefinitions(InputSource inputSource, Resource resource)Actually load bean definitions from the specified XML file.intXmlBeanDefinitionReader. loadBeanDefinitions(Resource resource)Load bean definitions from the specified XML file.intXmlBeanDefinitionReader. loadBeanDefinitions(EncodedResource encodedResource)Load bean definitions from the specified XML file.intXmlBeanDefinitionReader. loadBeanDefinitions(InputSource inputSource)Load bean definitions from the specified XML file.intXmlBeanDefinitionReader. loadBeanDefinitions(InputSource inputSource, String resourceDescription)Load bean definitions from the specified XML file.voidBeanDefinitionDocumentReader. registerBeanDefinitions(Document doc, XmlReaderContext readerContext)Read bean definitions from the given DOM document and register them with the registry in the given reader context.intXmlBeanDefinitionReader. registerBeanDefinitions(Document doc, Resource resource)Register the bean definitions contained in the given DOM document.protected StringAbstractBeanDefinitionParser. resolveId(Element element, AbstractBeanDefinition definition, ParserContext parserContext)Resolve the ID for the suppliedBeanDefinition.org.springframework.context.support中BeanDefinitionStoreException的使用
抛出BeanDefinitionStoreException的org.springframework.context.support中的方法 修饰符和类型 方法 说明 voidGenericApplicationContext. registerBeanDefinition(String beanName, BeanDefinition beanDefinition)