Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.websody.util
Class ParamSetter  view ParamSetter download ParamSetter.java

java.lang.Object
  extended byorg.websody.util.ParamSetter

public class ParamSetter
extends java.lang.Object

Analyses a class using the reflection API and provides methods to invoke setter methods of classes that follow the java bean design pattern.


Field Summary
private static java.util.Map cache
           
private static org.apache.log4j.Category log
           
 
Constructor Summary
ParamSetter()
           
 
Method Summary
static java.util.Iterator getPropertyNames(java.lang.Object o)
           
private static java.lang.reflect.Method getSetter(java.lang.Class c, java.lang.String name)
           
private static java.util.Map getSetterMap(java.lang.Class c)
           
static void setProperty(java.lang.Object o, java.lang.String name, java.lang.String value)
           
static void setProperty(java.lang.Object o, java.lang.String name, java.lang.String[] values)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cache

private static java.util.Map cache

log

private static org.apache.log4j.Category log
Constructor Detail

ParamSetter

public ParamSetter()
Method Detail

setProperty

public static void setProperty(java.lang.Object o,
                               java.lang.String name,
                               java.lang.String value)
                        throws java.beans.IntrospectionException

setProperty

public static void setProperty(java.lang.Object o,
                               java.lang.String name,
                               java.lang.String[] values)
                        throws java.beans.IntrospectionException

getPropertyNames

public static java.util.Iterator getPropertyNames(java.lang.Object o)
                                           throws java.beans.IntrospectionException

getSetter

private static java.lang.reflect.Method getSetter(java.lang.Class c,
                                                  java.lang.String name)
                                           throws java.beans.IntrospectionException

getSetterMap

private static java.util.Map getSetterMap(java.lang.Class c)
                                   throws java.beans.IntrospectionException