Package org.hivedb.util

Examples of org.hivedb.util.PropertyAccessor


  public static<T> T newInstance( Class<T> clazz ){
    return newInstance(clazz, getDefaultInterceptor(clazz));
  }
 
  public static<T> T newInstance( Class<T> clazz, MethodInterceptor interceptor, Map<String, Object> prototype ){
    PropertyAccessor instance = (PropertyAccessor) newInstance(clazz, interceptor);
    for (String propertyName : ReflectionTools.getPropertiesOfGetters((Class<?>)clazz))
      instance.set(propertyName, prototype.get(propertyName));
    return (T) instance;
  }
View Full Code Here

TOP

Related Classes of org.hivedb.util.PropertyAccessor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.