com.maxifier.mxcache.resource.ResourceWriter 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.resource;
import java.lang.annotation.*;
/**
* Use this annotation to mark your method as resource writer explicitly.
* This is just a shorthand for the following code:
*
* MxResource res = MxResourceFactory.getResource("here goes a name of resource");
* res.writeStart();
* try {
* ...your code goes here...
* } finally {
* res.writeEnd();
* }
*
*
* @see com.maxifier.mxcache.resource.MxResource
*
* @author Alexander Kochurov ([email protected])
*/
@Documented
@Target(ElementType.METHOD)
@Retention (RetentionPolicy.CLASS)
public @interface ResourceWriter {
/**
* @return names of resources
*/
String[] value();
}