public <T> T enhance( Object target, Class<? extends Interceptor> injectIntersClass1, Class<? extends Interceptor> injectIntersClass2, Class<? extends Interceptor> injectIntersClass3) { return (T) Enhancer.enhance(target, injectIntersClass1, injectIntersClass2, injectIntersClass3); }
public class UploadService extends BaseService { @SuppressWarnings("unused") private static Logger log = Logger.getLogger(UploadService.class); public static final UploadService service = Enhancer.enhance(UploadService.class); public List<Map<String, String>> upload(String pathType, List<UploadFile> files) { List<Map<String, String>> list = new ArrayList<Map<String, String>>(); for (UploadFile uploadFile : files) { String parameterName = uploadFile.getParameterName(); String fileName = uploadFile.getFileName(); String contentType = uploadFile.getContentType(); String originalFileName = uploadFile.getOriginalFileName(); Upload upload = new Upload(); upload.set(Upload.column_parametername, parameterName); upload.set(Upload.column_filename, fileName); upload.set(Upload.column_contenttype, contentType); upload.set(Upload.column_originalfilename, originalFileName); upload.set(Upload.column_path, pathType); upload.save(); Map<String, String> map = new HashMap<String, String>(); map.put("ids", upload.getPKValue()); map.put("fileName", fileName); map.put("pathType", pathType); list.add(map); } return list; } }
public <T> T enhance( String singletonKey, Object target, Class<? extends Interceptor>... injectIntersClasses) { return (T) Enhancer.enhance(singletonKey, target, injectIntersClasses); }
public <T> T enhance(String singletonKey, Object target, Interceptor... injectInters) { return (T) Enhancer.enhance(singletonKey, target, injectInters); }
public <T> T enhance(String singletonKey, Object target) { return (T) Enhancer.enhance(singletonKey, target); }
public <T> T enhance(Object target, Class<? extends Interceptor>... injectIntersClasses) { return (T) Enhancer.enhance(target, injectIntersClasses); }
public <T> T enhance(Object target) { return (T) Enhancer.enhance(target); }
public <T> T enhance(Object target, Interceptor... injectInters) { return (T) Enhancer.enhance(target, injectInters); }
public <T> T enhance(String singletonKey, Class<T> targetClass, Interceptor... injectInters) { return (T) Enhancer.enhance(singletonKey, (Object) targetClass, injectInters); }
public <T> T enhance(String singletonKey, Class<T> targetClass) { return (T) Enhancer.enhance(singletonKey, targetClass); }
public <T> T enhance( Class<T> targetClass, Class<? extends Interceptor> injectIntersClass1, Class<? extends Interceptor> injectIntersClass2) { return (T) Enhancer.enhance(targetClass, injectIntersClass1, injectIntersClass2); }
public <T> T enhance(Class<T> targetClass, Interceptor... injectInters) { return (T) Enhancer.enhance((Object) targetClass, injectInters); }
public <T> T enhance(Class<T> targetClass) { return (T) Enhancer.enhance(targetClass); }