?? reversemethodreplacer.java
字號:
/*
* The Spring Framework is published under the terms
* of the Apache Software License.
*/
package org.springframework.beans.factory.xml;
import java.io.Serializable;
import java.lang.reflect.Method;
import org.springframework.beans.factory.support.MethodReplacer;
/**
* @author Rod Johnson
*/
public class ReverseMethodReplacer implements MethodReplacer, Serializable {
public Object reimplement(Object obj, Method method, Object[] args) throws Throwable {
String s = (String) args[0];
return new StringBuffer(s).reverse().toString();
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -