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

grpcstarter.server.feature.exceptionhandling.annotation.GrpcAdvice Maven / Gradle / Ivy

There is a newer version: 3.4.1
Show newest version
package grpcstarter.server.feature.exceptionhandling.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.AliasFor;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * Specialization of {@link Component @Component} for classes that declare
 * {@link GrpcExceptionHandler @GrpcExceptionHandler} methods to handle exceptions.
 *
 * 

Usually used with {@link GrpcExceptionHandler @GrpcExceptionHandler} together. * *

{@link GrpcAdvice} can work with {@link Order} and {@link Ordered}, * exceptions will be handled in order. * * @author Freeman * @see GrpcExceptionHandler * @see Order * @see Ordered */ @Target({ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) @Component public @interface GrpcAdvice { /** * @see Component#value() */ @AliasFor(annotation = Component.class) String value() default ""; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy