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

fr.hhdev.ocelot.annotations.JsCacheRemove Maven / Gradle / Ivy

The newest version!
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package fr.hhdev.ocelot.annotations;

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

/**
 * Annotation for specify that the method annotated remove entry cache
 * @author hhfrancois
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface JsCacheRemove {
	Class cls();
	String methodName();
	/**
	 * Rules for parameters about key for cache, separate by coma
* The order is important
* use json notation.
* '*' : use all arguments in calculating cache key
* 'obj.id' : mean that for compute the key the value of id from argument named obj will be used.
* Exemple {"i", "u.id", "f.name"} * finally if you set nothing that means that you want to remove all result of this method without considering arguments * @return set of used keys ordered */ String[] keys() default {"*"}; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy