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

io.github.jdcmp.codegen.contract.LookupFactory Maven / Gradle / Ivy

There is a newer version: 0.3
Show newest version
package io.github.jdcmp.codegen.contract;


import io.github.jdcmp.api.documentation.ThreadSafe;

import java.lang.invoke.MethodHandles.Lookup;

/**
 * Provides {@link Lookup} instances for a given type.
 *
 */
@ThreadSafe
public interface LookupFactory {

	/**
	 * Retrieves a {@link Lookup} for the given type.
	 *
	 * @param clazz The type whose Lookup is desired
	 * @return A lookup
	 */
	Lookup lookupFor(Class clazz);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy