org.infinispan.cdi.ConfigureCache Maven / Gradle / Ivy
package org.infinispan.cdi;
import org.infinispan.configuration.cache.Configuration;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* This annotation is used to define a cache {@link Configuration}.
*
* @author Pete Muir
* @author Kevin Pollet (C) 2011 SERLI
*/
@Retention(RUNTIME)
@Target({METHOD, FIELD, PARAMETER, TYPE})
public @interface ConfigureCache {
/**
* The name of the cache to configure. If no value is provided the configured cache is the default one.
*/
String value() default "";
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy