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

ch.jalu.injector.handlers.instantiation.InstantiationProvider Maven / Gradle / Ivy

There is a newer version: 1.0
Show newest version
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 get(UnresolvedInstantiationContext context);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy