Top Description Constructors Methods
org.springframework.beans.factory.serviceloader

public Class ServiceListFactoryBean

extends AbstractServiceLoaderBasedFactoryBean
implements BeanClassLoaderAware
Class Inheritance
All Implemented Interfaces
org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.Aware
Imports
java.util.ArrayList, .List, .ServiceLoader, org.springframework.beans.factory.BeanClassLoaderAware

org.springframework.beans.factory.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.
Author
Juergen Hoeller
Since
2.5
See Also
java.util.ServiceLoader

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Object
getObjectToExpose(ServiceLoader<?>
the ServiceLoader for the configured service class
serviceLoader
)

Implements abstract org.springframework.beans.factory.serviceloader.AbstractServiceLoaderBasedFactoryBean.getObjectToExpose.

Determine the actual object to expose for the given ServiceLoader.
public Class<?>
getObjectType()

Implements abstract org.springframework.beans.factory.config.AbstractFactoryBean.getObjectType.

Implements org.springframework.beans.factory.FactoryBean.getObjectType.

This abstract method declaration mirrors the method in the FactoryBean interface, for a consistent offering of abstract template methods.
Inherited from org.springframework.beans.factory.serviceloader.AbstractServiceLoaderBasedFactoryBean:
createInstancegetServiceTypesetBeanClassLoadersetServiceType

Constructor Detail

ServiceListFactoryBeanback to summary
public ServiceListFactoryBean()

Method Detail

getObjectToExposeback to summary
protected Object getObjectToExpose(ServiceLoader<?> serviceLoader)

Implements abstract org.springframework.beans.factory.serviceloader.AbstractServiceLoaderBasedFactoryBean.getObjectToExpose.

Doc from org.springframework.beans.factory.serviceloader.AbstractServiceLoaderBasedFactoryBean.getObjectToExpose.

Determine the actual object to expose for the given ServiceLoader.

Left to concrete subclasses.

Parameters
serviceLoader:ServiceLoader<?>

the ServiceLoader for the configured service class

Returns:Object

the object to expose

Annotations
@Override
getObjectTypeback to summary
public Class<?> getObjectType()

Implements abstract org.springframework.beans.factory.config.AbstractFactoryBean.getObjectType.

Implements org.springframework.beans.factory.FactoryBean.getObjectType.

Doc from org.springframework.beans.factory.config.AbstractFactoryBean.getObjectType.

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

Returns:Class<?>

Doc from org.springframework.beans.factory.FactoryBean.getObjectType.

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

Annotations
@Override