org.codehaus.groovy.grails.commons
Class ClassPropertyFetcher
java.lang.Object
org.codehaus.groovy.grails.commons.ClassPropertyFetcher
public class ClassPropertyFetcher
- extends Object
Accesses class "properties": static fields, static getters, instance fields
or instance getters
Method and Field instances are cached for fast access
- Author:
- Lari Hotari, Sagire Software Oy
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
staticFetchers
final Map<String,ClassPropertyFetcher.PropertyFetcher> staticFetchers
instanceFetchers
final Map<String,ClassPropertyFetcher.PropertyFetcher> instanceFetchers
ClassPropertyFetcher
ClassPropertyFetcher(Class clazz,
ClassPropertyFetcher.ReferenceInstanceCallback callback)
isReadableProperty
public boolean isReadableProperty(String name)
getPropertyValue
public Object getPropertyValue(String name)
getPropertyValue
public Object getPropertyValue(String name,
boolean onlyInstanceProperties)
getPropertyType
public Class getPropertyType(String name)
getPropertyType
public Class getPropertyType(String name,
boolean onlyInstanceProperties)
Copyright (c) 2005-2009 The Grails project