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

com.maxifier.mxcache.resource.ResourceReader Maven / Gradle / Ivy

/*
 * 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 reader explicitly.
 * This is just a shorthand for the following code:
 * 
 * MxResource res = MxResourceFactory.getResource("here goes a name of resource");
 * res.readStart();
 * try {
 *     ...your code goes here...
 * } finally {
 *     res.readEnd();
 * }
 * 
 *
 * @see com.maxifier.mxcache.resource.MxResource
 *
 * @author Alexander Kochurov ([email protected])
 */
@Documented
@Target(ElementType.METHOD)
@Retention (RetentionPolicy.CLASS)
public @interface ResourceReader {
    /**
     * @return names of resources
     */
    String[] value();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy