/** * Locates and incrementally instantiates the available classes of a given * service file using the context class loader. * * @param serviceName the service name correspond to a file in * META-INF/services that contains a list of fully qualified class * names * @throws ServiceConfigurationError If a service file violates the specified format * or names a provider class that cannot be found and instantiated * @return the service finder */ public static ServiceFinder<?> find(final String serviceName) throws ServiceConfigurationError { return new ServiceFinder<Object>(Object.class, serviceName, _getContextClassLoader(), false); }
/** * Locates and incrementally instantiates the available classes of a given * service file using the context class loader. * * @param serviceName the service name correspond to a file in * META-INF/services that contains a list of fully qualified class * names * @throws ServiceConfigurationError If a service file violates the specified format * or names a provider class that cannot be found and instantiated * @return the service finder */ public static ServiceFinder<?> find(final String serviceName) throws ServiceConfigurationError { return new ServiceFinder<Object>(Object.class, serviceName, _getContextClassLoader(), false); }
/** * Locates and incrementally instantiates the available providers of a * given service using the context class loader. This convenience method * is equivalent to * <p/> * <pre> * ClassLoader cl = Thread.currentThread().getContextClassLoader(); * return Service.providers(service, cl, false); * </pre> * @param service The service's abstract service class * @throws ServiceConfigurationError If a provider-configuration file violates the specified format * or names a provider class that cannot be found and instantiated * @see #find(Class, ClassLoader) * @param <T> the type of the service instance. * @return the service finder */ public static <T> ServiceFinder<T> find(final Class<T> service) throws ServiceConfigurationError { return find(service, _getContextClassLoader(), false); }
/** * Locates and incrementally instantiates the available providers of a * given service using the context class loader. This convenience method * is equivalent to * <p/> * <pre> * ClassLoader cl = Thread.currentThread().getContextClassLoader(); * boolean ingore = ... * return Service.providers(service, cl, ignore); * </pre> * @param service The service's abstract service class * @param ignoreOnClassNotFound If a provider cannot be loaded by the class loader * then move on to the next available provider. * @throws ServiceConfigurationError If a provider-configuration file violates the specified format * or names a provider class that cannot be found and instantiated * @see #find(Class, ClassLoader) * @param <T> the type of the service instance. * @return the service finder */ public static <T> ServiceFinder<T> find(final Class<T> service, final boolean ignoreOnClassNotFound) throws ServiceConfigurationError { return find(service, _getContextClassLoader(), ignoreOnClassNotFound); }
/** * Locates and incrementally instantiates the available providers of a * given service using the context class loader. This convenience method * is equivalent to * <p/> * <pre> * ClassLoader cl = Thread.currentThread().getContextClassLoader(); * return Service.providers(service, cl, false); * </pre> * @param service The service's abstract service class * @throws ServiceConfigurationError If a provider-configuration file violates the specified format * or names a provider class that cannot be found and instantiated * @see #find(Class, ClassLoader) * @param <T> the type of the service instance. * @return the service finder */ public static <T> ServiceFinder<T> find(final Class<T> service) throws ServiceConfigurationError { return find(service, _getContextClassLoader(), false); }
/** * Locates and incrementally instantiates the available providers of a * given service using the context class loader. This convenience method * is equivalent to * <p/> * <pre> * ClassLoader cl = Thread.currentThread().getContextClassLoader(); * boolean ingore = ... * return Service.providers(service, cl, ignore); * </pre> * @param service The service's abstract service class * @param ignoreOnClassNotFound If a provider cannot be loaded by the class loader * then move on to the next available provider. * @throws ServiceConfigurationError If a provider-configuration file violates the specified format * or names a provider class that cannot be found and instantiated * @see #find(Class, ClassLoader) * @param <T> the type of the service instance. * @return the service finder */ public static <T> ServiceFinder<T> find(final Class<T> service, final boolean ignoreOnClassNotFound) throws ServiceConfigurationError { return find(service, _getContextClassLoader(), ignoreOnClassNotFound); }
/** * Locates and incrementally instantiates the available classes of a given * service file using the context class loader. * * @param serviceName the service name correspond to a file in * META-INF/services that contains a list of fully qualified class * names * @throws ServiceConfigurationError If a service file violates the specified format * or names a provider class that cannot be found and instantiated * @return the service finder */ public static ServiceFinder<?> find(final String serviceName) throws ServiceConfigurationError { return new ServiceFinder<Object>(Object.class, serviceName, _getContextClassLoader(), false); }
/** * Locates and incrementally instantiates the available classes of a given * service file using the context class loader. * * @param serviceName the service name correspond to a file in * META-INF/services that contains a list of fully qualified class * names * @throws ServiceConfigurationError If a service file violates the specified format * or names a provider class that cannot be found and instantiated * @return the service finder */ public static ServiceFinder<?> find(final String serviceName) throws ServiceConfigurationError { return new ServiceFinder<Object>(Object.class, serviceName, _getContextClassLoader(), false); }
/** * Locates and incrementally instantiates the available classes of a given * service file using the context class loader. * * @param serviceName the service name correspond to a file in * META-INF/services that contains a list of fully qualified class * names * @throws ServiceConfigurationError If a service file violates the specified format * or names a provider class that cannot be found and instantiated * @return the service finder */ public static ServiceFinder<?> find(final String serviceName) throws ServiceConfigurationError { return new ServiceFinder<Object>(Object.class, serviceName, _getContextClassLoader(), false); }
/** * Locates and incrementally instantiates the available classes of a given * service file using the context class loader. * * @param serviceName the service name correspond to a file in * META-INF/services that contains a list of fully qualified class * names * @throws ServiceConfigurationError If a service file violates the specified format * or names a provider class that cannot be found and instantiated * @return the service finder */ public static ServiceFinder<?> find(final String serviceName) throws ServiceConfigurationError { return new ServiceFinder<Object>(Object.class, serviceName, _getContextClassLoader(), false); }
/** * Locates and incrementally instantiates the available classes of a given * service file using the context class loader. * * @param serviceName the service name correspond to a file in * META-INF/services that contains a list of fully qualified class * names * @throws ServiceConfigurationError If a service file violates the specified format * or names a provider class that cannot be found and instantiated * @return the service finder */ public static ServiceFinder<?> find(final String serviceName) throws ServiceConfigurationError { return new ServiceFinder<Object>(Object.class, serviceName, _getContextClassLoader(), false); }
/** * Locates and incrementally instantiates the available providers of a * given service using the context class loader. This convenience method * is equivalent to * <p/> * <pre> * ClassLoader cl = Thread.currentThread().getContextClassLoader(); * return Service.providers(service, cl, false); * </pre> * @param service The service's abstract service class * @throws ServiceConfigurationError If a provider-configuration file violates the specified format * or names a provider class that cannot be found and instantiated * @see #find(Class, ClassLoader) * @param <T> the type of the service instance. * @return the service finder */ public static <T> ServiceFinder<T> find(final Class<T> service) throws ServiceConfigurationError { return find(service, _getContextClassLoader(), false); }
/** * Locates and incrementally instantiates the available providers of a * given service using the context class loader. This convenience method * is equivalent to * <p/> * <pre> * ClassLoader cl = Thread.currentThread().getContextClassLoader(); * return Service.providers(service, cl, false); * </pre> * @param service The service's abstract service class * @throws ServiceConfigurationError If a provider-configuration file violates the specified format * or names a provider class that cannot be found and instantiated * @see #find(Class, ClassLoader) * @param <T> the type of the service instance. * @return the service finder */ public static <T> ServiceFinder<T> find(final Class<T> service) throws ServiceConfigurationError { return find(service, _getContextClassLoader(), false); }
/** * Locates and incrementally instantiates the available providers of a * given service using the context class loader. This convenience method * is equivalent to * <p/> * <pre> * ClassLoader cl = Thread.currentThread().getContextClassLoader(); * return Service.providers(service, cl, false); * </pre> * @param service The service's abstract service class * @throws ServiceConfigurationError If a provider-configuration file violates the specified format * or names a provider class that cannot be found and instantiated * @see #find(Class, ClassLoader) * @param <T> the type of the service instance. * @return the service finder */ public static <T> ServiceFinder<T> find(final Class<T> service) throws ServiceConfigurationError { return find(service, _getContextClassLoader(), false); }
/** * Locates and incrementally instantiates the available providers of a * given service using the context class loader. This convenience method * is equivalent to * <p/> * <pre> * ClassLoader cl = Thread.currentThread().getContextClassLoader(); * return Service.providers(service, cl, false); * </pre> * @param service The service's abstract service class * @throws ServiceConfigurationError If a provider-configuration file violates the specified format * or names a provider class that cannot be found and instantiated * @see #find(Class, ClassLoader) * @param <T> the type of the service instance. * @return the service finder */ public static <T> ServiceFinder<T> find(final Class<T> service) throws ServiceConfigurationError { return find(service, _getContextClassLoader(), false); }
/** * Locates and incrementally instantiates the available providers of a * given service using the context class loader. This convenience method * is equivalent to * <p/> * <pre> * ClassLoader cl = Thread.currentThread().getContextClassLoader(); * boolean ingore = ... * return Service.providers(service, cl, ignore); * </pre> * @param service The service's abstract service class * @param ignoreOnClassNotFound If a provider cannot be loaded by the class loader * then move on to the next available provider. * @throws ServiceConfigurationError If a provider-configuration file violates the specified format * or names a provider class that cannot be found and instantiated * @see #find(Class, ClassLoader) * @param <T> the type of the service instance. * @return the service finder */ public static <T> ServiceFinder<T> find(final Class<T> service, final boolean ignoreOnClassNotFound) throws ServiceConfigurationError { return find(service, _getContextClassLoader(), ignoreOnClassNotFound); }
/** * Locates and incrementally instantiates the available providers of a * given service using the context class loader. This convenience method * is equivalent to * <p/> * <pre> * ClassLoader cl = Thread.currentThread().getContextClassLoader(); * boolean ingore = ... * return Service.providers(service, cl, ignore); * </pre> * @param service The service's abstract service class * @param ignoreOnClassNotFound If a provider cannot be loaded by the class loader * then move on to the next available provider. * @throws ServiceConfigurationError If a provider-configuration file violates the specified format * or names a provider class that cannot be found and instantiated * @see #find(Class, ClassLoader) * @param <T> the type of the service instance. * @return the service finder */ public static <T> ServiceFinder<T> find(final Class<T> service, final boolean ignoreOnClassNotFound) throws ServiceConfigurationError { return find(service, _getContextClassLoader(), ignoreOnClassNotFound); }
/** * Locates and incrementally instantiates the available providers of a * given service using the context class loader. This convenience method * is equivalent to * <p/> * <pre> * ClassLoader cl = Thread.currentThread().getContextClassLoader(); * return Service.providers(service, cl, false); * </pre> * @param service The service's abstract service class * @throws ServiceConfigurationError If a provider-configuration file violates the specified format * or names a provider class that cannot be found and instantiated * @see #find(Class, ClassLoader) * @param <T> the type of the service instance. * @return the service finder */ public static <T> ServiceFinder<T> find(final Class<T> service) throws ServiceConfigurationError { return find(service, _getContextClassLoader(), false); }
/** * Locates and incrementally instantiates the available providers of a * given service using the context class loader. This convenience method * is equivalent to * <p/> * <pre> * ClassLoader cl = Thread.currentThread().getContextClassLoader(); * boolean ingore = ... * return Service.providers(service, cl, ignore); * </pre> * @param service The service's abstract service class * @param ignoreOnClassNotFound If a provider cannot be loaded by the class loader * then move on to the next available provider. * @throws ServiceConfigurationError If a provider-configuration file violates the specified format * or names a provider class that cannot be found and instantiated * @see #find(Class, ClassLoader) * @param <T> the type of the service instance. * @return the service finder */ public static <T> ServiceFinder<T> find(final Class<T> service, final boolean ignoreOnClassNotFound) throws ServiceConfigurationError { return find(service, _getContextClassLoader(), ignoreOnClassNotFound); }
/** * Locates and incrementally instantiates the available providers of a * given service using the context class loader. This convenience method * is equivalent to * <p/> * <pre> * ClassLoader cl = Thread.currentThread().getContextClassLoader(); * boolean ingore = ... * return Service.providers(service, cl, ignore); * </pre> * @param service The service's abstract service class * @param ignoreOnClassNotFound If a provider cannot be loaded by the class loader * then move on to the next available provider. * @throws ServiceConfigurationError If a provider-configuration file violates the specified format * or names a provider class that cannot be found and instantiated * @see #find(Class, ClassLoader) * @param <T> the type of the service instance. * @return the service finder */ public static <T> ServiceFinder<T> find(final Class<T> service, final boolean ignoreOnClassNotFound) throws ServiceConfigurationError { return find(service, _getContextClassLoader(), ignoreOnClassNotFound); }