prompto.config.auth.IAuthenticationConfigurationFactory Maven / Gradle / Ivy
The newest version!
package prompto.config.auth;
import prompto.config.IConfigurationReader;
public interface IAuthenticationConfigurationFactory {
static IAuthenticationConfigurationFactory newFactory(String factoryName) throws Throwable {
Class> klass = Class.forName(factoryName, true, Thread.currentThread().getContextClassLoader());
if(!(IAuthenticationConfigurationFactory.class.isAssignableFrom(klass)))
throw new RuntimeException("Not an authentication configuration factory: " + factoryName);
return (IAuthenticationConfigurationFactory)klass.getDeclaredConstructor().newInstance();
}
IAuthenticationConfiguration newConfiguration(IConfigurationReader child);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy