public class ServiceListFactoryBean extends AbstractServiceLoaderBasedFactoryBean implements BeanClassLoaderAware
FactoryBean
that exposes all
services for the configured service class, represented as a List of service objects,
obtained through the JDK 1.6 ServiceLoader
facility.ServiceLoader
logger
Constructor and Description |
---|
ServiceListFactoryBean() |
Modifier and Type | Method and Description |
---|---|
protected Object |
getObjectToExpose(ServiceLoader<?> serviceLoader)
Determine the actual object to expose for the given ServiceLoader.
|
Class<?> |
getObjectType()
This abstract method declaration mirrors the method in the FactoryBean
interface, for a consistent offering of abstract template methods.
|
createInstance, getServiceType, setBeanClassLoader, setServiceType
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanFactory, setSingleton
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setBeanClassLoader
protected Object getObjectToExpose(ServiceLoader<?> serviceLoader)
AbstractServiceLoaderBasedFactoryBean
Left to concrete subclasses.
getObjectToExpose
in class AbstractServiceLoaderBasedFactoryBean
serviceLoader
- the ServiceLoader for the configured service classpublic Class<?> getObjectType()
AbstractFactoryBean
getObjectType
in interface FactoryBean<Object>
getObjectType
in class AbstractFactoryBean<Object>
null
if not known at the time of the callFactoryBean.getObjectType()