home | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Spring Framework example source code file (ReverseMethodReplacer.java)

This example Spring Framework source code file (ReverseMethodReplacer.java) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Spring Framework tags/keywords

io, method, methodreplacer, object, object, reflection, reversemethodreplacer, reversemethodreplacer, serializable, serializable, string, string, throwable

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:



my book on functional programming

 

new blog posts

 

Copyright 1998-2021 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.