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

com.microsoft.semantickernel.services.NamedServiceProvider Maven / Gradle / Ivy

There is a newer version: 1.3.0
Show newest version
// Copyright (c) Microsoft. All rights reserved.
package com.microsoft.semantickernel.services;

import javax.annotation.Nullable;

/**
 * A service provider for named services.
 *
 * @param  The type of the service.
 */
public interface NamedServiceProvider {

    /**
     * Gets the service of the specified type and name, or {@code null} if not found.
     *
     * @param name  The name of the service, or {@code null} for the default service.
     * @param clazz The type of the service.
     * @param    The specific type of the service
     * @return The service instance, or {@code null} if not found.
     */
    @Nullable
    public  U getService(@Nullable String name, Class clazz);
}