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

info.javaspec.spec.OuterClassFactory Maven / Gradle / Ivy

There is a newer version: 1.0.1
Show newest version
package info.javaspec.spec;

import java.lang.reflect.Constructor;

final class OuterClassFactory extends ClassFactory {
  @Override
  protected Constructor getConstructor(Class outerClass) throws NoSuchMethodException {
    return outerClass.getDeclaredConstructor();
  }

  @Override
  protected Object makeInstance(Constructor constructor) throws ReflectiveOperationException {
    return constructor.newInstance();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy