io.katharsis.locator.SampleJsonServiceLocator Maven / Gradle / Ivy
package io.katharsis.locator;
/**
* Sample implementation of {@link JsonServiceLocator}. It makes new instance for every method call.
*/
public class SampleJsonServiceLocator implements JsonServiceLocator {
@Override
public T getInstance(Class clazz) {
try {
return clazz.newInstance();
} catch (InstantiationException | IllegalAccessException e) {
throw new RuntimeException(e);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy