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 java.lang.Object |
getObjectToExpose(java.util.ServiceLoader<?> serviceLoader)
Determine the actual object to expose for the given ServiceLoader.
|
java.lang.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 java.lang.Object getObjectToExpose(java.util.ServiceLoader<?> serviceLoader)
AbstractServiceLoaderBasedFactoryBean
Left to concrete subclasses.
getObjectToExpose
in class AbstractServiceLoaderBasedFactoryBean
serviceLoader
- the ServiceLoader for the configured service classpublic java.lang.Class<?> getObjectType()
AbstractFactoryBean
getObjectType
in interface FactoryBean<java.lang.Object>
getObjectType
in class AbstractFactoryBean<java.lang.Object>
null
if not known at the time of the callFactoryBean.getObjectType()