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

com.microsoft.azure.functions.spi.inject.FunctionInstanceInjector Maven / Gradle / Ivy

Go to download

This package contains all SPI interfaces for third parties to interact with Microsoft Azure functions runtime.

There is a newer version: 1.1.0
Show newest version
/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 */
package com.microsoft.azure.functions.spi.inject;

/**
 * The instance factory used by DI framework to initialize function instance.
 *
 * @since 1.0.0
 */
public interface FunctionInstanceInjector {
    /**
     * This method is used by DI framework to initialize the function instance. This method takes in the customer class and returns
     * an instance create by the DI framework, later customer functions will be invoked on this instance.
     * @param functionClass the class that contains customer functions
     * @param  customer functions class type
     * @return the instance that will be invoked on by azure functions java worker
     * @throws Exception any exception that is thrown by the DI framework during instance creation
     */
     T getInstance(Class functionClass) throws Exception;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy