/** * Finds all available implementations of {@link CoordinateHandlerSpi} which have registered * using the services mechanism. * * @return An unmodifiable {@link Set} of all discovered modules which have registered factories */ public static synchronized Set<CoordinateHandlerSpi> getAvailableHandlers() { if (LOGGER.isLoggable(Level.FINE)) { LOGGER.fine("Coordinate Handlers scan"); } // get all CoordinateHandlerSpi implementations scanForPlugins(); return getServiceRegistry() .getFactories(CoordinateHandlerSpi.class, true) .collect(toUnmodifiableSet()); }
/** * Finds all avalaible implementations of {@link GridFormatFactorySpi} which have registered * using the services mechanism, and that have the appropriate libraries on the classpath. * * @return An unmodifiable {@link Set} of all discovered datastores which have registered * factories, and whose available method returns true. */ public static synchronized Set<GridFormatFactorySpi> getAvailableFormats() { // get all GridFormatFactorySpi implementations scanForPlugins(); return getServiceRegistry() .getFactories(GridFormatFactorySpi.class, true) .filter(GridFormatFactorySpi::isAvailable) .collect(toUnmodifiableSet()); }
/** * Finds all avalaible implementations of {@link GridFormatFactorySpi} which have registered * using the services mechanism, and that have the appropriate libraries on the classpath. * * @return An unmodifiable {@link Set} of all discovered datastores which have registered * factories, and whose available method returns true. */ public static synchronized Set<PropertiesCollectorSPI> getPropertiesCollectorSPI() { // get all GridFormatFactorySpi implementations scanForPlugins(); return getServiceRegistry() .getFactories(PropertiesCollectorSPI.class, true) .filter(PropertiesCollectorSPI::isAvailable) .collect(toUnmodifiableSet()); }
/** * Finds all available implementations of {@link Driver} which have registered using the * services mechanism, and that have the appropriate libraries on the class-path. * * @return An unmodifiable {@link Set} of all discovered drivers which have registered * factories, and whose available method returns true. */ public static synchronized Set<Driver> getAvailableDrivers() { // get all Driver implementations scanForPlugins(); return getServiceRegistry() .getFactories(Driver.class, false) .filter(Driver::isAvailable) .collect(toUnmodifiableSet()); }
/** * Finds all available implementations of {@link FootprintLoaderSpi} which have registered using * the services mechanism. * * @return An unmodifiable {@link Set} of all discovered modules which have registered factories */ public static synchronized Set<FootprintLoaderSpi> getAvailableLoaders() { // get all FootprintLoaderSpi implementations scanForPlugins(); return getServiceRegistry() .getFactories(FootprintLoaderSpi.class, true) .collect(toUnmodifiableSet()); }
/** * Finds all available implementations of {@link CoordinateHandlerSpi} which have registered * using the services mechanism. * * @return An unmodifiable {@link Set} of all discovered modules which have registered factories */ public static synchronized Set<CoordinateHandlerSpi> getAvailableHandlers() { if (LOGGER.isLoggable(Level.FINE)) { LOGGER.fine("Coordinate Handlers scan"); } // get all CoordinateHandlerSpi implementations scanForPlugins(); return getServiceRegistry() .getFactories(CoordinateHandlerSpi.class, true) .collect(toUnmodifiableSet()); }
/** * Finds all available implementations of {@link Driver} which have registered using the * services mechanism, and that have the appropriate libraries on the class-path. * * @return An unmodifiable {@link Set} of all discovered drivers which have registered * factories, and whose available method returns true. */ public static synchronized Set<Driver> getAvailableDrivers() { // get all Driver implementations scanForPlugins(); return getServiceRegistry() .getFactories(Driver.class, false) .filter(Driver::isAvailable) .collect(toUnmodifiableSet()); }