
com.payneteasy.startup.parameters.StartupParametersFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of startup-parameters Show documentation
Show all versions of startup-parameters Show documentation
Read system parameters and environment variable
package com.payneteasy.startup.parameters;
import java.lang.reflect.Proxy;
public class StartupParametersFactory {
public static T getStartupParameters(Class aClass) {
//noinspection unchecked
return (T) Proxy.newProxyInstance(
Thread.currentThread().getContextClassLoader()
, new Class[]{aClass}
, new StartupParametersInvocationHandler(aClass)
);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy