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

net.jqwik.api.facades.ReflectionSupportFacade Maven / Gradle / Ivy

There is a newer version: 1.9.1
Show newest version
package net.jqwik.api.facades;

import org.apiguardian.api.*;

import net.jqwik.api.*;

import static org.apiguardian.api.API.Status.*;

@API(status = INTERNAL)
public abstract class ReflectionSupportFacade {

	public static final ReflectionSupportFacade implementation;

	static {
		implementation = FacadeLoader.load(ReflectionSupportFacade.class);
	}

	/**
	 * Create instance of a class that can potentially be a non static inner class
	 * and its outer instance might be {@code context}
	 *
	 * @param      The type of the instance to create
	 * @param clazz   The class to instantiate
	 * @param context The potential context instance
	 * @return the newly created instance
	 */
	public abstract   T newInstanceInTestContext(Class clazz, Object context);

	/**
	 * Create instance of a class that can potentially be a non static inner class
	 *
	 * @param    The type of the instance to create
	 * @param clazz The class to instantiate
	 * @return the newly created instance
	 */
	public abstract  T newInstanceWithDefaultConstructor(Class clazz);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy