Class ServiceFactoryBean
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<Object>
org.springframework.beans.factory.serviceloader.AbstractServiceLoaderBasedFactoryBean
org.springframework.beans.factory.serviceloader.ServiceFactoryBean
- All Implemented Interfaces:
 Aware,BeanClassLoaderAware,BeanFactoryAware,DisposableBean,FactoryBean<Object>,InitializingBean
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.- Since:
 - 2.5
 - Author:
 - Juergen Hoeller
 - See Also:
 
- 
Field Summary
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
loggerFields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE - 
Constructor Summary
Constructors - 
Method Summary
Modifier 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.AbstractServiceLoaderBasedFactoryBean
createInstance, getServiceType, setBeanClassLoader, setServiceTypeMethods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanFactory, setSingletonMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.BeanClassLoaderAware
setBeanClassLoader 
- 
Constructor Details
- 
ServiceFactoryBean
public ServiceFactoryBean() 
 - 
 - 
Method Details
- 
getObjectToExpose
Description copied from class:AbstractServiceLoaderBasedFactoryBeanDetermine the actual object to expose for the given ServiceLoader.Left to concrete subclasses.
- Specified by:
 getObjectToExposein classAbstractServiceLoaderBasedFactoryBean- Parameters:
 serviceLoader- the ServiceLoader for the configured service class- Returns:
 - the object to expose
 
 - 
getObjectType
Description 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 interfaceFactoryBean<Object>- Specified by:
 getObjectTypein classAbstractFactoryBean<Object>- Returns:
 - the type of object that this FactoryBean creates,
 or 
nullif not known at the time of the call - See Also:
 
 
 -