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

com.jquicker.cache.CacheAspect Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
package com.jquicker.cache;

import com.jquicker.annotation.aop.Aspect;

/**
 * @author OL
 */
@Aspect
public class CacheAspect {

	private String prefix = "";
	
	public CacheAspect(String prefix) {
		this.prefix = prefix == null ? "" : prefix + "-";
	}
	
	public void addPrefix(Object[] args) {
		if(args.length > 0) {
			args[0] = prefix + args[0];
		}
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy