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

net.anotheria.moskito.integration.cdi.monitor.Monitor Maven / Gradle / Ivy

There is a newer version: 4.0.3
Show newest version
package net.anotheria.moskito.integration.cdi.monitor;

import javax.enterprise.util.Nonbinding;
import javax.interceptor.InterceptorBinding;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Interceptor binding annotation for MoSKito interceptors.
 *
 * @author Alex Osadchy
 */
@Inherited
@InterceptorBinding
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface Monitor {

    /**
     * Producer Id.
     *
     * @return producer id
     */
    @Nonbinding String producerId() default "";

    /**
     * Category.
     *
     * @return category name
     */
    @Nonbinding String category() default "default";

    /**
     * Subsystem.
     *
     * @return subsystem name
     */
    @Nonbinding String subsystem() default "default";

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy