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

com.nepxion.matrix.proxy.util.ProxyUtil Maven / Gradle / Ivy

Go to download

Nepxion Matrix is an AOP framework integrated with Spring AutoProxy, Spring Registrar and Spring Import Selector

There is a newer version: 3.0.0
Show newest version
package com.nepxion.matrix.proxy.util;

/**
 * 

Title: Nepxion Matrix

*

Description: Nepxion Matrix AOP

*

Copyright: Copyright (c) 2017-2050

*

Company: Nepxion

* @author Haojun Ren * @version 1.0 */ import org.apache.commons.lang3.ArrayUtils; public class ProxyUtil { // 转换Class数组成字符串格式 public static String toString(Class[] parameterTypes) { if (ArrayUtils.isEmpty(parameterTypes)) { return ""; } StringBuilder builder = new StringBuilder(); for (Class clazz : parameterTypes) { builder.append("," + clazz.getCanonicalName()); } String parameter = builder.toString().trim(); if (parameter.length() > 0) { return parameter.substring(1); } return ""; } // 转换String数组成字符串格式 public static String toString(String[] values) { if (ArrayUtils.isEmpty(values)) { return ""; } StringBuilder builder = new StringBuilder(); for (String value : values) { builder.append("," + value); } String parameter = builder.toString().trim(); if (parameter.length() > 0) { return parameter.substring(1); } return ""; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy