package com.atlassian.stash.internal.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Applies {@link com.atlassian.stash.internal.aop.ExceptionRewriteAdvice ExceptionRewriteAdvice} to the target class.
 * This allows rewriting exceptions without requiring the component to be annotated {@code &#064;Service}, which is
 * useful in cases where the component should not be instantiated as a Spring bean.
 *
 * @since 3.6
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface RewriteExceptions {
}
