public class ServiceLoaderFactoryBean extends AbstractServiceLoaderBasedFactoryBean implements BeanClassLoaderAware
FactoryBean
that exposes the
JDK 1.6 ServiceLoader
for the configured service class.ServiceLoader
logger
Constructor and Description |
---|
ServiceLoaderFactoryBean() |
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()