org.infinispan.factories.scopes.Scope Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of infinispan-component-annotations Show documentation
Show all versions of infinispan-component-annotations Show documentation
Annotations for Infinispan components and MBeans
package org.infinispan.factories.scopes;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* Defines the scope of a component in a cache system. If not specified, components default to the {@link
* Scopes#NAMED_CACHE} scope.
*
* Note: The {@code Scope} annotation is inherited so that the annotation processor can find subclasses.
* Although annotating interfaces is allowed, it is preferable to annotate only classes.
*
* @author Manik Surtani
* @see Scopes
* @since 4.0
*/
@Retention(RetentionPolicy.CLASS)
@Inherited
public @interface Scope {
Scopes value();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy