Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
爱吃血肠
spring-framework
提交
5aefb2ce
S
spring-framework
项目概览
爱吃血肠
/
spring-framework
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
spring-framework
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
5aefb2ce
编写于
11月 11, 2009
作者:
J
Juergen Hoeller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refined javadoc (SPR-5789)
上级
a06adf72
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
10 addition
and
6 deletion
+10
-6
org.springframework.beans/src/main/java/org/springframework/beans/factory/config/SingletonBeanRegistry.java
...framework/beans/factory/config/SingletonBeanRegistry.java
+10
-6
未找到文件。
org.springframework.beans/src/main/java/org/springframework/beans/factory/config/SingletonBeanRegistry.java
浏览文件 @
5aefb2ce
/*
* Copyright 2002-200
7
the original author or authors.
* Copyright 2002-200
9
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -40,7 +40,7 @@ public interface SingletonBeanRegistry {
* call InitializingBean's <code>afterPropertiesSet</code> method).
* The given instance will not receive any destruction callbacks
* (like DisposableBean's <code>destroy</code> method) either.
* <p>
If
running within a full BeanFactory: <b>Register a bean definition
* <p>
When
running within a full BeanFactory: <b>Register a bean definition
* instead of an existing instance if your bean is supposed to receive
* initialization and/or destruction callbacks.</b>
* <p>Typically invoked during registry configuration, but can also be used
...
...
@@ -62,6 +62,8 @@ public interface SingletonBeanRegistry {
* <p>The main purpose of this method is to access manually registered singletons
* (see {@link #registerSingleton}). Can also be used to access a singleton
* defined by a bean definition that already been created, in a raw fashion.
* <p><b>NOTE:</b> This lookup method is not aware of FactoryBean prefixes or aliases.
* You need to resolve the canonical bean name first before obtaining the singleton instance.
* @param beanName the name of the bean to look for
* @return the registered singleton object, or <code>null</code> if none found
* @see ConfigurableListableBeanFactory#getBeanDefinition
...
...
@@ -78,10 +80,12 @@ public interface SingletonBeanRegistry {
* <p>To check whether a bean factory contains a bean definition with a given name,
* use ListableBeanFactory's <code>containsBeanDefinition</code>. Calling both
* <code>containsBeanDefinition</code> and <code>containsSingleton</code> answers
* whether a specific bean factory contains a
n own bean
with the given name.
* whether a specific bean factory contains a
local bean instance
with the given name.
* <p>Use BeanFactory's <code>containsBean</code> for general checks whether the
* factory knows about a bean with a given name (whether manually registered singleton
* instance or created by bean definition), also checking ancestor factories.
* <p><b>NOTE:</b> This lookup method is not aware of FactoryBean prefixes or aliases.
* You need to resolve the canonical bean name first before checking the singleton status.
* @param beanName the name of the bean to look for
* @return if this bean factory contains a singleton instance with the given name
* @see #registerSingleton
...
...
@@ -95,9 +99,9 @@ public interface SingletonBeanRegistry {
* <p>Only checks already instantiated singletons; does not return names
* for singleton bean definitions which have not been instantiated yet.
* <p>The main purpose of this method is to check manually registered singletons
* (see {@link #registerSingleton}). Can also be used to check which
*
singletons
defined by a bean definition have already been created.
* @return the list of names as String array (never <code>null</code>)
* (see {@link #registerSingleton}). Can also be used to check which
singletons
* defined by a bean definition have already been created.
* @return the list of names as
a
String array (never <code>null</code>)
* @see #registerSingleton
* @see org.springframework.beans.factory.support.BeanDefinitionRegistry#getBeanDefinitionNames
* @see org.springframework.beans.factory.ListableBeanFactory#getBeanDefinitionNames
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录