|
Spring Framework example source code file (ReverseMethodReplacer.java)
The Spring Framework ReverseMethodReplacer.java source code/* * 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(); } } Other Spring Framework examples (source code examples)Here is a short list of links related to this Spring Framework ReverseMethodReplacer.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.