接口的使用
org.springframework.beans.factory.FactoryBean
使用FactoryBean的程序包 程序包 说明 org.springframework.aop.config Support package for declarative AOP configuration, with XML schema being the primary configuration format.org.springframework.aop.framework Package containing Spring's basic AOP infrastructure, compliant with the AOP Alliance interfaces.org.springframework.aop.scope Support for AOP-based scoping of target objects, with configurable backend.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.serviceloader Support package for the Java 6 ServiceLoader facility.org.springframework.beans.factory.support Classes supporting theorg.springframework.beans.factory
package.org.springframework.cache.concurrent Implementation package forjava.util.concurrent
based caches.org.springframework.cache.ehcache Support classes for the open source cache EhCache 2.x, allowing to set up an EhCache CacheManager and Caches as beans in a Spring context.org.springframework.cache.interceptor AOP-based solution for declarative caching demarcation.org.springframework.cache.jcache Implementation package for JSR-107 (javax.cache aka "JCache") based caches.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.ejb.access This package contains classes that allow easy access to EJBs.org.springframework.format.datetime.joda Integration with Joda-Time for formatting Joda date and time types as well as standard JDK Date types.org.springframework.format.datetime.standard Integration with the JSR-310java.time
package in JDK 8.org.springframework.format.support Support classes for the formatting package, providing common implementations as well as adapters.org.springframework.http.client.support This package provides generic HTTP support classes, to be used by higher-level classes like RestTemplate.org.springframework.http.converter.json Provides HttpMessageConverter implementations for handling JSON.org.springframework.jca.support Provides generic support classes for JCA usage within Spring, mainly for local setup of a JCA ResourceAdapter and/or ConnectionFactory.org.springframework.jdbc.config Defines the Spring JDBC configuration namespace.org.springframework.jdbc.datasource.embedded Provides extensible support for creating embedded database instances.org.springframework.jms.remoting Remoting classes for transparent Java-to-Java remoting via a JMS provider.org.springframework.jmx.access Provides support for accessing remote MBean resources.org.springframework.jmx.support Contains support classes for connecting to local and remoteMBeanServer
s and for exposing anMBeanServer
to remote clients.org.springframework.jndi The classes in this package make JNDI easier to use, facilitating the accessing of configuration stored in JNDI, and provide useful superclasses for JNDI access classes.org.springframework.orm.hibernate5 Package providing integration of Hibernate 5.x with Spring concepts.org.springframework.orm.jpa Package providing integration of JPA (Java Persistence API) with Spring concepts.org.springframework.orm.jpa.support Classes supporting theorg.springframework.orm.jpa
package.org.springframework.orm.jpa.vendor Support classes for adapting to specific JPA vendors.org.springframework.remoting.caucho This package provides remoting classes for Caucho's Hessian protocol: a proxy factory for accessing Hessian services, and an exporter for making beans available to Hessian clients.org.springframework.remoting.httpinvoker Remoting classes for transparent Java-to-Java remoting via HTTP invokers.org.springframework.remoting.jaxws Remoting classes for Web Services via JAX-WS (the successor of JAX-RPC), as included in Java 6 and Java EE 5.org.springframework.remoting.rmi Remoting classes for conventional RMI and transparent remoting via RMI invokers.org.springframework.remoting.support Generic support classes for remoting implementations.org.springframework.scheduling.commonj Convenience classes for scheduling based on the CommonJ WorkManager/TimerManager facility, as supported by IBM WebSphere 6.0+ and BEA WebLogic 9.0+.org.springframework.scheduling.concurrent Scheduling convenience classes for thejava.util.concurrent
andjavax.enterprise.concurrent
packages, allowing to set up a ThreadPoolExecutor or ScheduledThreadPoolExecutor as a bean in a Spring context.org.springframework.scheduling.config Support package for declarative scheduling configuration, with XML schema being the primary configuration format.org.springframework.scheduling.quartz Support classes for the open source scheduler Quartz, allowing to set up Quartz Schedulers, JobDetails and Triggers as beans in a Spring context.org.springframework.transaction.config Support package for declarative transaction configuration, with XML schema being the primary configuration format.org.springframework.transaction.interceptor AOP-based solution for declarative transaction demarcation.org.springframework.ui.freemarker Support classes for setting up FreeMarker within a Spring application context.org.springframework.web.accept This package contains classes used to determine the requested the media types in a request.org.springframework.web.context.support Classes supporting theorg.springframework.web.context
package, such as WebApplicationContext implementations and various utility classes.org.springframework.web.socket.client.standard Client-side classes for use with standard Java WebSocket endpoints.org.springframework.web.socket.server.standard Server-side classes for use with standard JSR-356 WebSocket endpoints.org.springframework.aop.config中FactoryBean的使用
实现FactoryBean的org.springframework.aop.config中的类 修饰符和类型 类 说明 class
MethodLocatingFactoryBean
FactoryBean
implementation that locates aMethod
on a specified bean.org.springframework.aop.framework中FactoryBean的使用
实现FactoryBean的org.springframework.aop.framework中的类 修饰符和类型 类 说明 class
AbstractSingletonProxyFactoryBean
Convenient superclass forFactoryBean
types that produce singleton-scoped proxy objects.class
ProxyFactoryBean
FactoryBean
implementation that builds an AOP proxy based on beans in SpringBeanFactory
.org.springframework.aop.scope中FactoryBean的使用
实现FactoryBean的org.springframework.aop.scope中的类 修饰符和类型 类 说明 class
ScopedProxyFactoryBean
Convenient proxy factory bean for scoped objects.org.springframework.beans.factory中FactoryBean的使用
org.springframework.beans.factory中FactoryBean的子接口 修饰符和类型 接口 说明 interface
SmartFactoryBean<T>
Extension of theFactoryBean
interface.org.springframework.beans.factory.config中FactoryBean的使用
实现FactoryBean的org.springframework.beans.factory.config中的类 修饰符和类型 类 说明 class
AbstractFactoryBean<T>
Simple template superclass forFactoryBean
implementations that creates a singleton or a prototype object, depending on a flag.class
FieldRetrievingFactoryBean
FactoryBean
which retrieves a static or non-static field value.class
ListFactoryBean
Simple factory for shared List instances.class
MapFactoryBean
Simple factory for shared Map instances.class
MethodInvokingFactoryBean
FactoryBean
which returns a value which is the result of a static or instance method invocation.class
ObjectFactoryCreatingFactoryBean
AFactoryBean
implementation that returns a value which is anObjectFactory
that in turn returns a bean sourced from aBeanFactory
.class
PropertiesFactoryBean
Allows for making a properties file from a classpath location available as Properties instance in a bean factory.class
PropertyPathFactoryBean
FactoryBean
that evaluates a property path on a given target object.class
ProviderCreatingFactoryBean
AFactoryBean
implementation that returns a value which is a JSR-330Provider
that in turn returns a bean sourced from aBeanFactory
.class
ServiceLocatorFactoryBean
AFactoryBean
implementation that takes an interface which must have one or more methods with the signaturesMyType xxx()
orMyType xxx(MyIdType id)
(typically,MyService getService()
orMyService getService(String id)
) and creates a dynamic proxy which implements that interface, delegating to an underlyingBeanFactory
.class
SetFactoryBean
Simple factory for shared Set instances.class
YamlMapFactoryBean
Factory for aMap
that reads from a YAML source, preserving the YAML-declared value types and their structure.class
YamlPropertiesFactoryBean
Factory forProperties
that reads from a YAML source, exposing a flat structure of String property values.org.springframework.beans.factory.serviceloader中FactoryBean的使用
实现FactoryBean的org.springframework.beans.factory.serviceloader中的类 修饰符和类型 类 说明 class
AbstractServiceLoaderBasedFactoryBean
Abstract base class for FactoryBeans operating on the JDK 1.6ServiceLoader
facility.class
ServiceFactoryBean
FactoryBean
that exposes the 'primary' service for the configured service class, obtained through the JDK 1.6ServiceLoader
facility.class
ServiceListFactoryBean
FactoryBean
that exposes all services for the configured service class, represented as a List of service objects, obtained through the JDK 1.6ServiceLoader
facility.class
ServiceLoaderFactoryBean
FactoryBean
that exposes the JDK 1.6ServiceLoader
for the configured service class.org.springframework.beans.factory.support中FactoryBean的使用
返回FactoryBean的org.springframework.beans.factory.support中的方法 修饰符和类型 方法 说明 protected FactoryBean<?>
FactoryBeanRegistrySupport. getFactoryBean(String beanName, Object beanInstance)
Get a FactoryBean for the given bean if possible.参数类型为FactoryBean的org.springframework.beans.factory.support中的方法 修饰符和类型 方法 说明 protected Object
FactoryBeanRegistrySupport. getObjectFromFactoryBean(FactoryBean<?> factory, String beanName, boolean shouldPostProcess)
Obtain an object to expose from the given FactoryBean.protected Class<?>
FactoryBeanRegistrySupport. getTypeForFactoryBean(FactoryBean<?> factoryBean)
Determine the type for the given FactoryBean.org.springframework.cache.concurrent中FactoryBean的使用
实现FactoryBean的org.springframework.cache.concurrent中的类 修饰符和类型 类 说明 class
ConcurrentMapCacheFactoryBean
FactoryBean
for easy configuration of aConcurrentMapCache
when used within a Spring container.org.springframework.cache.ehcache中FactoryBean的使用
实现FactoryBean的org.springframework.cache.ehcache中的类 修饰符和类型 类 说明 class
EhCacheFactoryBean
FactoryBean
that creates a named EhCacheCache
instance (or a decorator that implements theEhcache
interface), representing a cache region within an EhCacheCacheManager
.class
EhCacheManagerFactoryBean
FactoryBean
that exposes an EhCacheCacheManager
instance (independent or shared), configured from a specified config location.org.springframework.cache.interceptor中FactoryBean的使用
实现FactoryBean的org.springframework.cache.interceptor中的类 修饰符和类型 类 说明 class
CacheProxyFactoryBean
Proxy factory bean for simplified declarative caching handling.org.springframework.cache.jcache中FactoryBean的使用
实现FactoryBean的org.springframework.cache.jcache中的类 修饰符和类型 类 说明 class
JCacheManagerFactoryBean
FactoryBean
for a JCachejavax.cache.CacheManager
, obtaining a pre-definedCacheManager
by name through the standard JCachejavax.cache.Caching
class.org.springframework.context.support中FactoryBean的使用
实现FactoryBean的org.springframework.context.support中的类 修饰符和类型 类 说明 class
ConversionServiceFactoryBean
A factory providing convenient access to a ConversionService configured with converters appropriate for most environments.org.springframework.ejb.access中FactoryBean的使用
实现FactoryBean的org.springframework.ejb.access中的类 修饰符和类型 类 说明 class
LocalStatelessSessionProxyFactoryBean
ConvenientFactoryBean
for local Stateless Session Bean (SLSB) proxies.class
SimpleRemoteStatelessSessionProxyFactoryBean
ConvenientFactoryBean
for remote SLSB proxies.org.springframework.format.datetime.joda中FactoryBean的使用
实现FactoryBean的org.springframework.format.datetime.joda中的类 修饰符和类型 类 说明 class
DateTimeFormatterFactoryBean
FactoryBean
that creates a Joda-TimeDateTimeFormatter
.org.springframework.format.datetime.standard中FactoryBean的使用
实现FactoryBean的org.springframework.format.datetime.standard中的类 修饰符和类型 类 说明 class
DateTimeFormatterFactoryBean
FactoryBean
that creates a JSR-310DateTimeFormatter
.org.springframework.format.support中FactoryBean的使用
实现FactoryBean的org.springframework.format.support中的类 修饰符和类型 类 说明 class
FormattingConversionServiceFactoryBean
A factory providing convenient access to aFormattingConversionService
configured with converters and formatters for common types such as numbers and datetimes.org.springframework.http.client.support中FactoryBean的使用
实现FactoryBean的org.springframework.http.client.support中的类 修饰符和类型 类 说明 class
ProxyFactoryBean
FactoryBean
that creates ajava.net.Proxy
.org.springframework.http.converter.json中FactoryBean的使用
实现FactoryBean的org.springframework.http.converter.json中的类 修饰符和类型 类 说明 class
GsonFactoryBean
AFactoryBean
for creating a Google Gson 2.xGson
instance.class
Jackson2ObjectMapperFactoryBean
AFactoryBean
for creating a Jackson 2.xObjectMapper
(default) orXmlMapper
(createXmlMapper
property set to true) with setters to enable or disable Jackson features from within XML configuration.org.springframework.jca.support中FactoryBean的使用
实现FactoryBean的org.springframework.jca.support中的类 修饰符和类型 类 说明 class
LocalConnectionFactoryBean
FactoryBean
that creates a local JCA connection factory in "non-managed" mode (as defined by the Java Connector Architecture specification).class
ResourceAdapterFactoryBean
FactoryBean
that bootstraps the specified JCA 1.7ResourceAdapter
, starting it with a localBootstrapContext
and exposing it for bean references.org.springframework.jdbc.config中FactoryBean的使用
实现FactoryBean的org.springframework.jdbc.config中的类 修饰符和类型 类 说明 class
SortedResourcesFactoryBean
FactoryBean
implementation that takes a list of location Strings and creates a sorted array ofResource
instances.org.springframework.jdbc.datasource.embedded中FactoryBean的使用
实现FactoryBean的org.springframework.jdbc.datasource.embedded中的类 修饰符和类型 类 说明 class
EmbeddedDatabaseFactoryBean
A subclass ofEmbeddedDatabaseFactory
that implementsFactoryBean
for registration as a Spring bean.org.springframework.jms.remoting中FactoryBean的使用
实现FactoryBean的org.springframework.jms.remoting中的类 修饰符和类型 类 说明 class
JmsInvokerProxyFactoryBean
FactoryBean for JMS invoker proxies.org.springframework.jmx.access中FactoryBean的使用
实现FactoryBean的org.springframework.jmx.access中的类 修饰符和类型 类 说明 class
MBeanProxyFactoryBean
Creates a proxy to a managed resource running either locally or remotely.org.springframework.jmx.support中FactoryBean的使用
实现FactoryBean的org.springframework.jmx.support中的类 修饰符和类型 类 说明 class
ConnectorServerFactoryBean
FactoryBean
that creates a JSR-160JMXConnectorServer
, optionally registers it with theMBeanServer
, and then starts it.class
MBeanServerConnectionFactoryBean
FactoryBean
that creates a JMX 1.2MBeanServerConnection
to a remoteMBeanServer
exposed via aJMXServerConnector
.class
MBeanServerFactoryBean
FactoryBean
that obtains aMBeanServer
reference through the standard JMX 1.2MBeanServerFactory
API.class
WebSphereMBeanServerFactoryBean
FactoryBean
that obtains a WebSphereMBeanServer
reference through WebSphere's proprietaryAdminServiceFactory
API, available on WebSphere 5.1 and higher.org.springframework.jndi中FactoryBean的使用
实现FactoryBean的org.springframework.jndi中的类 修饰符和类型 类 说明 class
JndiObjectFactoryBean
FactoryBean
that looks up a JNDI object.org.springframework.orm.hibernate5中FactoryBean的使用
实现FactoryBean的org.springframework.orm.hibernate5中的类 修饰符和类型 类 说明 class
LocalSessionFactoryBean
FactoryBean
that creates a HibernateSessionFactory
.org.springframework.orm.jpa中FactoryBean的使用
实现FactoryBean的org.springframework.orm.jpa中的类 修饰符和类型 类 说明 class
AbstractEntityManagerFactoryBean
AbstractFactoryBean
that creates a local JPAEntityManagerFactory
instance within a Spring application context.class
LocalContainerEntityManagerFactoryBean
FactoryBean
that creates a JPAEntityManagerFactory
according to JPA's standard container bootstrap contract.class
LocalEntityManagerFactoryBean
FactoryBean
that creates a JPAEntityManagerFactory
according to JPA's standard standalone bootstrap contract.org.springframework.orm.jpa.support中FactoryBean的使用
实现FactoryBean的org.springframework.orm.jpa.support中的类 修饰符和类型 类 说明 class
SharedEntityManagerBean
FactoryBean
that exposes a shared JPAEntityManager
reference for a given EntityManagerFactory.org.springframework.orm.jpa.vendor中FactoryBean的使用
实现FactoryBean的org.springframework.orm.jpa.vendor中的类 修饰符和类型 类 说明 class
HibernateJpaSessionFactoryBean
已过时。as of Spring Framework 4.3.12 against Hibernate 5.2, in favor of a custom solution based onEntityManagerFactory.unwrap(java.lang.Class<T>)
with explicit qualifiers and/or primary markersorg.springframework.remoting.caucho中FactoryBean的使用
实现FactoryBean的org.springframework.remoting.caucho中的类 修饰符和类型 类 说明 class
HessianProxyFactoryBean
FactoryBean
for Hessian proxies.org.springframework.remoting.httpinvoker中FactoryBean的使用
实现FactoryBean的org.springframework.remoting.httpinvoker中的类 修饰符和类型 类 说明 class
HttpInvokerProxyFactoryBean
FactoryBean
for HTTP invoker proxies.org.springframework.remoting.jaxws中FactoryBean的使用
实现FactoryBean的org.springframework.remoting.jaxws中的类 修饰符和类型 类 说明 class
JaxWsPortProxyFactoryBean
FactoryBean
for a specific port of a JAX-WS service.class
LocalJaxWsServiceFactoryBean
FactoryBean
for locally defined JAX-WS Service references.org.springframework.remoting.rmi中FactoryBean的使用
实现FactoryBean的org.springframework.remoting.rmi中的类 修饰符和类型 类 说明 class
JndiRmiProxyFactoryBean
FactoryBean
for RMI proxies from JNDI.class
RmiProxyFactoryBean
FactoryBean
for RMI proxies, supporting both conventional RMI services and RMI invokers.class
RmiRegistryFactoryBean
FactoryBean
that locates aRegistry
and exposes it for bean references.org.springframework.remoting.support中FactoryBean的使用
实现FactoryBean的org.springframework.remoting.support中的类 修饰符和类型 类 说明 class
SimpleHttpServerFactoryBean
已过时。as of Spring Framework 5.1, in favor of embedded Tomcat/Jetty/Undertoworg.springframework.scheduling.commonj中FactoryBean的使用
实现FactoryBean的org.springframework.scheduling.commonj中的类 修饰符和类型 类 说明 class
TimerManagerFactoryBean
已过时。as of 5.1, in favor of EE 7'sDefaultManagedTaskScheduler
org.springframework.scheduling.concurrent中FactoryBean的使用
实现FactoryBean的org.springframework.scheduling.concurrent中的类 修饰符和类型 类 说明 class
ForkJoinPoolFactoryBean
A SpringFactoryBean
that builds and exposes a preconfiguredForkJoinPool
.class
ScheduledExecutorFactoryBean
FactoryBean
that sets up aScheduledExecutorService
(by default: aScheduledThreadPoolExecutor
) and exposes it for bean references.class
ThreadPoolExecutorFactoryBean
JavaBean that allows for configuring aThreadPoolExecutor
in bean style (through its "corePoolSize", "maxPoolSize", "keepAliveSeconds", "queueCapacity" properties) and exposing it as a bean reference of its nativeExecutorService
type.org.springframework.scheduling.config中FactoryBean的使用
实现FactoryBean的org.springframework.scheduling.config中的类 修饰符和类型 类 说明 class
TaskExecutorFactoryBean
FactoryBean
for creatingThreadPoolTaskExecutor
instances, primarily used behind the XML task namespace.org.springframework.scheduling.quartz中FactoryBean的使用
实现FactoryBean的org.springframework.scheduling.quartz中的类 修饰符和类型 类 说明 class
CronTriggerFactoryBean
A SpringFactoryBean
for creating a QuartzCronTrigger
instance, supporting bean-style usage for trigger configuration.class
JobDetailFactoryBean
A SpringFactoryBean
for creating a QuartzJobDetail
instance, supporting bean-style usage for JobDetail configuration.class
MethodInvokingJobDetailFactoryBean
FactoryBean
that exposes aJobDetail
object which delegates job execution to a specified (static or non-static) method.class
SchedulerFactoryBean
FactoryBean
that creates and configures a QuartzScheduler
, manages its lifecycle as part of the Spring application context, and exposes the Scheduler as bean reference for dependency injection.class
SimpleTriggerFactoryBean
A SpringFactoryBean
for creating a QuartzSimpleTrigger
instance, supporting bean-style usage for trigger configuration.org.springframework.transaction.config中FactoryBean的使用
实现FactoryBean的org.springframework.transaction.config中的类 修饰符和类型 类 说明 class
JtaTransactionManagerFactoryBean
AFactoryBean
equivalent to the <tx:jta-transaction-manager/> XML element, autodetecting WebLogic and WebSphere servers and exposing the correspondingJtaTransactionManager
subclass.org.springframework.transaction.interceptor中FactoryBean的使用
实现FactoryBean的org.springframework.transaction.interceptor中的类 修饰符和类型 类 说明 class
TransactionProxyFactoryBean
Proxy factory bean for simplified declarative transaction handling.org.springframework.ui.freemarker中FactoryBean的使用
实现FactoryBean的org.springframework.ui.freemarker中的类 修饰符和类型 类 说明 class
FreeMarkerConfigurationFactoryBean
Factory bean that creates a FreeMarker Configuration and provides it as bean reference.org.springframework.web.accept中FactoryBean的使用
实现FactoryBean的org.springframework.web.accept中的类 修饰符和类型 类 说明 class
ContentNegotiationManagerFactoryBean
Factory to create aContentNegotiationManager
and configure it withContentNegotiationStrategy
instances.org.springframework.web.context.support中FactoryBean的使用
实现FactoryBean的org.springframework.web.context.support中的类 修饰符和类型 类 说明 class
ServletContextAttributeFactoryBean
FactoryBean
that fetches a specific, existing ServletContext attribute.class
ServletContextParameterFactoryBean
FactoryBean
that retrieves a specific ServletContext init parameter (that is, a "context-param" defined inweb.xml
).org.springframework.web.socket.client.standard中FactoryBean的使用
实现FactoryBean的org.springframework.web.socket.client.standard中的类 修饰符和类型 类 说明 class
WebSocketContainerFactoryBean
A FactoryBean for creating and configuring aWebSocketContainer
through Spring XML configuration.org.springframework.web.socket.server.standard中FactoryBean的使用
实现FactoryBean的org.springframework.web.socket.server.standard中的类 修饰符和类型 类 说明 class
ServletServerContainerFactoryBean
AFactoryBean
for configuringServerContainer
.