public static Collection<String> getAllAvailableConnectionProviderTypes() { return FACTORY_LOADER.getSupportedTypes(); } }
PluggableFactoryLoader<SystemConfigFactory> configFactoryLoader = new PluggableFactoryLoader<>(SystemConfigFactory.class); SystemConfigFactory configFactory = configFactoryLoader.get(storeType); if(configFactory == null) LOGGER.error("Unknown config store type '" + storeType + "', only the following types are supported: " + configFactoryLoader.getSupportedTypes()); throw new IllegalArgumentException("Unknown config store type '"+storeType+"', only the following types are supported: " + configFactoryLoader.getSupportedTypes());
private void updateEncrypter(final String encryptionProviderType) { if(encryptionProviderType != null && !"".equals(encryptionProviderType.trim())) { PluggableFactoryLoader<ConfigurationSecretEncrypterFactory> factoryLoader = new PluggableFactoryLoader<>(ConfigurationSecretEncrypterFactory.class); ConfigurationSecretEncrypterFactory factory = factoryLoader.get(encryptionProviderType); if (factory == null) { throw new IllegalConfigurationException("Unknown Configuration Secret Encryption method " + encryptionProviderType); } setEncrypter(factory.createEncrypter(this)); } else { setEncrypter(null); } }