Class ServiceLoaderFactoryBean
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<Object>
org.springframework.beans.factory.serviceloader.AbstractServiceLoaderBasedFactoryBean
org.springframework.beans.factory.serviceloader.ServiceLoaderFactoryBean
- All Implemented Interfaces:
- Aware,- BeanClassLoaderAware,- BeanFactoryAware,- DisposableBean,- FactoryBean<Object>,- InitializingBean
public class ServiceLoaderFactoryBean
extends AbstractServiceLoaderBasedFactoryBean
implements BeanClassLoaderAware
FactoryBean that exposes the
 JDK 1.6 ServiceLoader for the configured service class.- Since:
- 2.5
- Author:
- Juergen Hoeller
- See Also:
- 
Field SummaryFields inherited from class org.springframework.beans.factory.config.AbstractFactoryBeanloggerFields inherited from interface org.springframework.beans.factory.FactoryBeanOBJECT_TYPE_ATTRIBUTE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected ObjectgetObjectToExpose(ServiceLoader<?> serviceLoader) Determine the actual object to expose for the given ServiceLoader.Class<?>This abstract method declaration mirrors the method in the FactoryBean interface, for a consistent offering of abstract template methods.Methods inherited from class org.springframework.beans.factory.serviceloader.AbstractServiceLoaderBasedFactoryBeancreateInstance, getServiceType, setBeanClassLoader, setServiceTypeMethods inherited from class org.springframework.beans.factory.config.AbstractFactoryBeanafterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanFactory, setSingletonMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.BeanClassLoaderAwaresetBeanClassLoader
- 
Constructor Details- 
ServiceLoaderFactoryBeanpublic ServiceLoaderFactoryBean()
 
- 
- 
Method Details- 
getObjectToExposeDescription copied from class:AbstractServiceLoaderBasedFactoryBeanDetermine the actual object to expose for the given ServiceLoader.Left to concrete subclasses. - Specified by:
- getObjectToExposein class- AbstractServiceLoaderBasedFactoryBean
- Parameters:
- serviceLoader- the ServiceLoader for the configured service class
- Returns:
- the object to expose
 
- 
getObjectTypeDescription copied from class:AbstractFactoryBeanThis abstract method declaration mirrors the method in the FactoryBean interface, for a consistent offering of abstract template methods.- Specified by:
- getObjectTypein interface- FactoryBean<Object>
- Specified by:
- getObjectTypein class- AbstractFactoryBean<Object>
- Returns:
- the type of object that this FactoryBean creates,
 or nullif not known at the time of the call
- See Also:
 
 
-