ch.jalu.injector.handlers.instantiation.InstantiationProvider Maven / Gradle / Ivy
package ch.jalu.injector.handlers.instantiation;
import ch.jalu.injector.context.UnresolvedInstantiationContext;
import ch.jalu.injector.handlers.Handler;
import javax.annotation.Nullable;
/**
* Provides an {@link Instantiation} for classes when applicable.
*/
public interface InstantiationProvider extends Handler {
/**
* Provides an instantiation method for the given class if available.
*
* @param context the instantiation context
* @param the class' type
* @return the instantiation for the class, or {@code null} if not possible
*/
@Nullable
Instantiation extends T> get(UnresolvedInstantiationContext context);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy