接口的使用
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.factorypackage.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.contextpackage, such as WebApplicationContext implementations and various utility classes.org.springframework.beans.factory中ObjectFactory的使用
org.springframework.beans.factory中ObjectFactory的子接口 修饰符和类型 接口 说明 interfaceObjectProvider<T>A variant ofObjectFactorydesigned 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中的方法 修饰符和类型 方法 说明 ObjectScope. get(String name, ObjectFactory<?> objectFactory)Return the object with the given name from the underlying scope,creating itif not found in the underlying storage mechanism.org.springframework.beans.factory.support中ObjectFactory的使用
参数类型为ObjectFactory的org.springframework.beans.factory.support中的方法 修饰符和类型 方法 说明 protected voidDefaultSingletonBeanRegistry. addSingletonFactory(String beanName, ObjectFactory<?> singletonFactory)Add the given singleton factory for building the specified singleton if necessary.ObjectDefaultSingletonBeanRegistry. 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中的方法 修饰符和类型 方法 说明 ObjectSimpleThreadScope. get(String name, ObjectFactory<?> objectFactory)org.springframework.messaging.simp中ObjectFactory的使用
参数类型为ObjectFactory的org.springframework.messaging.simp中的方法 修饰符和类型 方法 说明 ObjectSimpSessionScope. get(String name, ObjectFactory<?> objectFactory)org.springframework.transaction.support中ObjectFactory的使用
参数类型为ObjectFactory的org.springframework.transaction.support中的方法 修饰符和类型 方法 说明 ObjectSimpleTransactionScope. get(String name, ObjectFactory<?> objectFactory)org.springframework.web.context.request中ObjectFactory的使用
参数类型为ObjectFactory的org.springframework.web.context.request中的方法 修饰符和类型 方法 说明 ObjectAbstractRequestAttributesScope. get(String name, ObjectFactory<?> objectFactory)ObjectSessionScope. get(String name, ObjectFactory<?> objectFactory)org.springframework.web.context.support中ObjectFactory的使用
参数类型为ObjectFactory的org.springframework.web.context.support中的方法 修饰符和类型 方法 说明 ObjectServletContextScope. get(String name, ObjectFactory<?> objectFactory)