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

com.oracle.coherence.helidon.client.GrpcChannelLiteral Maven / Gradle / Ivy

There is a newer version: 23.09.1
Show newest version
/*
 * Copyright (c) 2000, 2022, Oracle and/or its affiliates.
 *
 * Licensed under the Universal Permissive License v 1.0 as shown at
 * https://oss.oracle.com/licenses/upl.
 */

package com.oracle.coherence.helidon.client;

import io.helidon.microprofile.grpc.client.GrpcChannel;

import java.lang.annotation.Annotation;

/**
 * A {@link GrpcChannel} annotation literal.
 *
 * @author Jonathan Knight  2019.11.28
 * @since 20.06
 */
public class GrpcChannelLiteral
    {
    /**
     * Create a {@link GrpcChannel} annotation literal.
     *
     * @param sName  the channel name
     *
     * @return {@link GrpcChannel} annotation literal
     */
    public static Annotation of(String sName)
        {
        Class type = GrpcChannel.class;
        return new GrpcChannel()
            {
            @Override
            public Class annotationType()
                {
                return type;
                }

            @Override
            public String name()
                {
                return sName;
                }
            };
        }
    }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy