org.rhq.enterprise.server.util
Class MethodUtil

java.lang.Object
  extended by org.rhq.enterprise.server.util.MethodUtil

public class MethodUtil
extends Object

A simple class that assists with method invocation. We should just use the jakarta-commons MethodUtils class, but that class can't deal with static methods, so it is useless to us.

Version:
$Rev$

Method Summary
static Object getClassFromSystemProperty(String className, Object... args)
          Return the classname from the config.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getClassFromSystemProperty

public static Object getClassFromSystemProperty(String className,
                                                Object... args)
Return the classname from the config. Useful if you want to configure a different class to be returned in specific instances.

Parameters:
className - to check for overridden value.
Returns:
className from config or the className from parameter if not found


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.