Package | Description |
---|---|
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 the
org.springframework.beans.factory package. |
org.springframework.beans.factory.xml |
Contains an abstract XML-based
BeanFactory implementation,
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.
|
Modifier and Type | Method and Description |
---|---|
void |
ConfigurableBeanFactory.registerAlias(java.lang.String beanName,
java.lang.String alias)
Given a bean name, create an alias.
|
Modifier and Type | Method and Description |
---|---|
int |
GroovyBeanDefinitionReader.loadBeanDefinitions(EncodedResource encodedResource)
Load bean definitions from the specified Groovy script or XML file.
|
int |
GroovyBeanDefinitionReader.loadBeanDefinitions(Resource resource)
Load bean definitions from the specified Groovy script or XML file.
|
Modifier and Type | Class and Description |
---|---|
class |
BeanDefinitionParsingException
Exception thrown when a bean definition reader encounters an error
during the parsing process.
|
Modifier and Type | Class and Description |
---|---|
class |
BeanDefinitionOverrideException
Subclass of
BeanDefinitionStoreException indicating an invalid override
attempt: typically registering a new definition for the same bean name while
DefaultListableBeanFactory.isAllowBeanDefinitionOverriding() is false . |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractBeanFactory.checkMergedBeanDefinition(RootBeanDefinition mbd,
java.lang.String beanName,
java.lang.Object[] args)
Check the given merged bean definition,
potentially throwing validation exceptions.
|
static java.lang.String |
BeanDefinitionReaderUtils.generateBeanName(BeanDefinition beanDefinition,
BeanDefinitionRegistry registry)
Generate a bean name for the given top-level bean definition,
unique within the given bean factory.
|
static java.lang.String |
BeanDefinitionReaderUtils.generateBeanName(BeanDefinition definition,
BeanDefinitionRegistry registry,
boolean isInnerBean)
Generate a bean name for the given bean definition, unique within the
given bean factory.
|
protected RootBeanDefinition |
AbstractBeanFactory.getMergedBeanDefinition(java.lang.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 RootBeanDefinition |
AbstractBeanFactory.getMergedBeanDefinition(java.lang.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.
|
int |
PropertiesBeanDefinitionReader.loadBeanDefinitions(EncodedResource encodedResource)
Load bean definitions from the specified properties file.
|
int |
PropertiesBeanDefinitionReader.loadBeanDefinitions(EncodedResource encodedResource,
java.lang.String prefix)
Load bean definitions from the specified properties file.
|
int |
AbstractBeanDefinitionReader.loadBeanDefinitions(Resource... resources) |
int |
BeanDefinitionReader.loadBeanDefinitions(Resource... resources)
Load bean definitions from the specified resources.
|
int |
BeanDefinitionReader.loadBeanDefinitions(Resource resource)
Load bean definitions from the specified resource.
|
int |
PropertiesBeanDefinitionReader.loadBeanDefinitions(Resource resource)
Load bean definitions from the specified properties file,
using all property keys (i.e.
|
int |
PropertiesBeanDefinitionReader.loadBeanDefinitions(Resource resource,
java.lang.String prefix)
Load bean definitions from the specified properties file.
|
int |
AbstractBeanDefinitionReader.loadBeanDefinitions(java.lang.String... locations) |
int |
BeanDefinitionReader.loadBeanDefinitions(java.lang.String... locations)
Load bean definitions from the specified resource locations.
|
int |
AbstractBeanDefinitionReader.loadBeanDefinitions(java.lang.String location) |
int |
BeanDefinitionReader.loadBeanDefinitions(java.lang.String location)
Load bean definitions from the specified resource location.
|
int |
AbstractBeanDefinitionReader.loadBeanDefinitions(java.lang.String location,
java.util.Set<Resource> actualResources)
Load bean definitions from the specified resource location.
|
static void |
BeanDefinitionReaderUtils.registerBeanDefinition(BeanDefinitionHolder definitionHolder,
BeanDefinitionRegistry registry)
Register the given bean definition with the given bean factory.
|
void |
SimpleBeanDefinitionRegistry.registerBeanDefinition(java.lang.String beanName,
BeanDefinition beanDefinition) |
void |
BeanDefinitionRegistry.registerBeanDefinition(java.lang.String beanName,
BeanDefinition beanDefinition)
Register a new bean definition with this registry.
|
void |
DefaultListableBeanFactory.registerBeanDefinition(java.lang.String beanName,
BeanDefinition beanDefinition) |
int |
PropertiesBeanDefinitionReader.registerBeanDefinitions(java.util.ResourceBundle rb)
Register bean definitions contained in a resource bundle,
using all property keys (i.e.
|
int |
PropertiesBeanDefinitionReader.registerBeanDefinitions(java.util.ResourceBundle rb,
java.lang.String prefix)
Register bean definitions contained in a ResourceBundle.
|
static java.lang.String |
BeanDefinitionReaderUtils.registerWithGeneratedName(AbstractBeanDefinition definition,
BeanDefinitionRegistry registry)
Register the given bean definition with a generated name,
unique within the given bean factory.
|
Modifier and Type | Class and Description |
---|---|
class |
XmlBeanDefinitionStoreException
XML-specific BeanDefinitionStoreException subclass that wraps a
SAXException , typically a SAXParseException
which contains information about the error location. |
Modifier and Type | Method and Description |
---|---|
protected int |
XmlBeanDefinitionReader.doLoadBeanDefinitions(org.xml.sax.InputSource inputSource,
Resource resource)
Actually load bean definitions from the specified XML file.
|
int |
XmlBeanDefinitionReader.loadBeanDefinitions(EncodedResource encodedResource)
Load bean definitions from the specified XML file.
|
int |
XmlBeanDefinitionReader.loadBeanDefinitions(org.xml.sax.InputSource inputSource)
Load bean definitions from the specified XML file.
|
int |
XmlBeanDefinitionReader.loadBeanDefinitions(org.xml.sax.InputSource inputSource,
java.lang.String resourceDescription)
Load bean definitions from the specified XML file.
|
int |
XmlBeanDefinitionReader.loadBeanDefinitions(Resource resource)
Load bean definitions from the specified XML file.
|
int |
XmlBeanDefinitionReader.registerBeanDefinitions(org.w3c.dom.Document doc,
Resource resource)
Register the bean definitions contained in the given DOM document.
|
void |
BeanDefinitionDocumentReader.registerBeanDefinitions(org.w3c.dom.Document doc,
XmlReaderContext readerContext)
Read bean definitions from the given DOM document and
register them with the registry in the given reader context.
|
protected java.lang.String |
AbstractBeanDefinitionParser.resolveId(org.w3c.dom.Element element,
AbstractBeanDefinition definition,
ParserContext parserContext)
Resolve the ID for the supplied
BeanDefinition . |
Modifier and Type | Method and Description |
---|---|
void |
GenericApplicationContext.registerBeanDefinition(java.lang.String beanName,
BeanDefinition beanDefinition) |