com.ochafik.beans
Class BeansUtils

java.lang.Object
  extended by com.ochafik.beans.BeansUtils

public class BeansUtils
extends Object


Constructor Summary
BeansUtils()
           
 
Method Summary
static void addPropertyChangeListener(Object bean, String propertyName, PropertyChangeListener listener)
           
static Object get(Object bean, String propertyName)
           
static
<T> T
get(Object bean, String propertyName, Class<T> propertyClass)
           
static void markTransientProperty(String name, Class<?> classe)
           
static void removePropertyChangeListener(Object bean, String propertyName, PropertyChangeListener listener)
           
static
<T> void
set(Object bean, String propertyName, Class<T> propertyClass, T value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeansUtils

public BeansUtils()
Method Detail

markTransientProperty

public static final void markTransientProperty(String name,
                                               Class<?> classe)
                                        throws IntrospectionException
Throws:
IntrospectionException

addPropertyChangeListener

public static void addPropertyChangeListener(Object bean,
                                             String propertyName,
                                             PropertyChangeListener listener)

removePropertyChangeListener

public static void removePropertyChangeListener(Object bean,
                                                String propertyName,
                                                PropertyChangeListener listener)

get

public static Object get(Object bean,
                         String propertyName)

get

public static <T> T get(Object bean,
                        String propertyName,
                        Class<T> propertyClass)

set

public static <T> void set(Object bean,
                           String propertyName,
                           Class<T> propertyClass,
                           T value)


Copyright © 2009. All Rights Reserved.