com.maxifier.mxcache.context.UseCacheContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mxcache-runtime Show documentation
Show all versions of mxcache-runtime Show documentation
Constains all classes necessary for launching a MxCache-instrumentated application
/*
* Copyright (c) 2008-2014 Maxifier Ltd. All Rights Reserved.
*/
package com.maxifier.mxcache.context;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
*
* This annotation is used in instrumentation. It should be used with constructor arguments of your classes that
* have @Cached methods.
*
* It tells MxCache to use specified cache context that is passed via argument.
* The annotated parameters type should extend {@link com.maxifier.mxcache.context.CacheContext} interface,
* otherwise it will fail in runtime.
*
*
* @author Alexander Kochurov ([email protected])
*/
@Target(ElementType.PARAMETER)
@Retention(RetentionPolicy.RUNTIME)
public @interface UseCacheContext {
}