All Downloads are FREE. Search and download functionalities are using the official Maven repository.

prompto.config.auth.IAuthenticationConfigurationFactory Maven / Gradle / Ivy

There is a newer version: 0.1.57
Show 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