public class

ServiceListFactoryBean

extends AbstractServiceLoaderBasedFactoryBean
implements BeanClassLoaderAware
java.lang.Object
   ↳ org.springframework.beans.factory.config.AbstractFactoryBean<T>
     ↳ org.springframework.beans.factory.serviceloader.AbstractServiceLoaderBasedFactoryBean
       ↳ org.springframework.beans.factory.serviceloader.ServiceListFactoryBean

Class Overview

FactoryBean that exposes all services for the configured service class, represented as a List of service objects, obtained through the JDK 1.6 java.util.ServiceLoader facility.

See Also

Summary

[Expand]
Inherited Fields
From class org.springframework.beans.factory.config.AbstractFactoryBean
Public Constructors
ServiceListFactoryBean()
Public Methods
Class getObjectType()
This abstract method declaration mirrors the method in the FactoryBean interface, for a consistent offering of abstract template methods.
Protected Methods
Object getObjectToExpose(ServiceLoader serviceLoader)
Determine the actual object to expose for the given ServiceLoader.
[Expand]
Inherited Methods
From class org.springframework.beans.factory.serviceloader.AbstractServiceLoaderBasedFactoryBean
From class org.springframework.beans.factory.config.AbstractFactoryBean
From class java.lang.Object
From interface org.springframework.beans.factory.BeanClassLoaderAware
From interface org.springframework.beans.factory.BeanFactoryAware
From interface org.springframework.beans.factory.DisposableBean
From interface org.springframework.beans.factory.FactoryBean
From interface org.springframework.beans.factory.InitializingBean

Public Constructors

public ServiceListFactoryBean ()

Also: SpringBeans

Public Methods

public Class getObjectType ()

Also: SpringBeans

This abstract method declaration mirrors the method in the FactoryBean interface, for a consistent offering of abstract template methods.

Returns
  • the type of object that this FactoryBean creates, or null if not known at the time of the call

Protected Methods

protected Object getObjectToExpose (ServiceLoader serviceLoader)

Also: SpringBeans

Determine the actual object to expose for the given ServiceLoader.

Left to concrete subclasses.

Parameters
serviceLoader the ServiceLoader for the configured service class
Returns
  • the object to expose