- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {Charset c =
String charsetName;Charset.forName(charsetName)
Charset.defaultCharset()
ContentType contentType;contentType.getCharset()
- Smart code suggestions by Codota
}
/** * 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()); }