接口的使用
org.springframework.beans.factory.ObjectFactory
使用ObjectFactory的程序包 程序包 说明 org.springframework.beans.factory The core package implementing Spring's lightweight Inversion of Control (IoC) container.org.springframework.beans.factory.config SPI interfaces and configuration-related convenience classes for bean factories.org.springframework.beans.factory.support Classes supporting theorg.springframework.beans.factory
package.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.messaging.simp Generic support for Simple Messaging Protocols including protocols such as STOMP.org.springframework.transaction.support Support classes for the org.springframework.transaction package.org.springframework.web.context.request Support for generic request context holding, in particular for scoping of application objects per HTTP request or HTTP session.org.springframework.web.context.support Classes supporting theorg.springframework.web.context
package, such as WebApplicationContext implementations and various utility classes.org.springframework.beans.factory中ObjectFactory的使用
org.springframework.beans.factory中ObjectFactory的子接口 修饰符和类型 接口 说明 interface
ObjectProvider<T>
A variant ofObjectFactory
designed specifically for injection points, allowing for programmatic optionality and lenient not-unique handling.org.springframework.beans.factory.config中ObjectFactory的使用
返回ObjectFactory的org.springframework.beans.factory.config中的方法 修饰符和类型 方法 说明 protected ObjectFactory<Object>
ObjectFactoryCreatingFactoryBean. createInstance()
参数类型为ObjectFactory的org.springframework.beans.factory.config中的方法 修饰符和类型 方法 说明 Object
Scope. get(String name, ObjectFactory<?> objectFactory)
Return the object with the given name from the underlying scope,creating it
if not found in the underlying storage mechanism.org.springframework.beans.factory.support中ObjectFactory的使用
参数类型为ObjectFactory的org.springframework.beans.factory.support中的方法 修饰符和类型 方法 说明 protected void
DefaultSingletonBeanRegistry. addSingletonFactory(String beanName, ObjectFactory<?> singletonFactory)
Add the given singleton factory for building the specified singleton if necessary.Object
DefaultSingletonBeanRegistry. getSingleton(String beanName, ObjectFactory<?> singletonFactory)
Return the (raw) singleton object registered under the given name, creating and registering a new one if none registered yet.org.springframework.context.support中ObjectFactory的使用
参数类型为ObjectFactory的org.springframework.context.support中的方法 修饰符和类型 方法 说明 Object
SimpleThreadScope. get(String name, ObjectFactory<?> objectFactory)
org.springframework.messaging.simp中ObjectFactory的使用
参数类型为ObjectFactory的org.springframework.messaging.simp中的方法 修饰符和类型 方法 说明 Object
SimpSessionScope. get(String name, ObjectFactory<?> objectFactory)
org.springframework.transaction.support中ObjectFactory的使用
参数类型为ObjectFactory的org.springframework.transaction.support中的方法 修饰符和类型 方法 说明 Object
SimpleTransactionScope. get(String name, ObjectFactory<?> objectFactory)
org.springframework.web.context.request中ObjectFactory的使用
参数类型为ObjectFactory的org.springframework.web.context.request中的方法 修饰符和类型 方法 说明 Object
AbstractRequestAttributesScope. get(String name, ObjectFactory<?> objectFactory)
Object
SessionScope. get(String name, ObjectFactory<?> objectFactory)
org.springframework.web.context.support中ObjectFactory的使用
参数类型为ObjectFactory的org.springframework.web.context.support中的方法 修饰符和类型 方法 说明 Object
ServletContextScope. get(String name, ObjectFactory<?> objectFactory)