org.springframework.beans.factory.serviceloader

Class ServiceLoaderFactoryBean

    • Constructor Detail

      • ServiceLoaderFactoryBean

        public ServiceLoaderFactoryBean()
    • Method Detail

      • getObjectToExpose

        protected java.lang.Object getObjectToExpose(java.util.ServiceLoader<?> serviceLoader)
        Description copied from class: AbstractServiceLoaderBasedFactoryBean
        Determine the actual object to expose for the given ServiceLoader.

        Left to concrete subclasses.

        Specified by:
        getObjectToExpose in class AbstractServiceLoaderBasedFactoryBean
        Parameters:
        serviceLoader - the ServiceLoader for the configured service class
        Returns:
        the object to expose
      • getObjectType

        public java.lang.Class<?> getObjectType()
        Description copied from class: AbstractFactoryBean
        This abstract method declaration mirrors the method in the FactoryBean interface, for a consistent offering of abstract template methods.
        Specified by:
        getObjectType in interface FactoryBean<java.lang.Object>
        Specified by:
        getObjectType in class AbstractFactoryBean<java.lang.Object>
        Returns:
        the type of object that this FactoryBean creates, or null if not known at the time of the call
        See Also:
        FactoryBean.getObjectType()