public class ServiceFactoryBean extends AbstractServiceLoaderBasedFactoryBean implements BeanClassLoaderAware
FactoryBean
that exposes the
'primary' service for the configured service class, obtained through
the JDK 1.6 ServiceLoader
facility.ServiceLoader
logger
Constructor and Description |
---|
ServiceFactoryBean() |
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
getObjectType
in class AbstractFactoryBean
null
if not known at the time of the callFactoryBean.getObjectType()