org.apache.struts2.views.xdocreport
Class LazyPopulateContext

java.lang.Object
  extended by org.apache.struts2.views.xdocreport.AbstractPopulateContext
      extended by org.apache.struts2.views.xdocreport.LazyPopulateContext

public class LazyPopulateContext
extends AbstractPopulateContext


Constructor Summary
LazyPopulateContext()
           
 
Method Summary
protected  Method getAccessibleMethod(Class clazz, Method method)
           Return an accessible method (that is, one that can be invoked via reflection) that implements the specified Method.
static LazyPopulateContext getInstance()
           
protected  PropertyDescriptor[] getPropertyDescriptors(Object pojo)
           
protected  Method getReadMethod(Class clazz, PropertyDescriptor descriptor)
           
protected  Object getSimpleProperty(Object pojo, PropertyDescriptor descriptor)
           
 
Methods inherited from class org.apache.struts2.views.xdocreport.AbstractPopulateContext
populate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LazyPopulateContext

public LazyPopulateContext()
Method Detail

getInstance

public static LazyPopulateContext getInstance()

getPropertyDescriptors

protected PropertyDescriptor[] getPropertyDescriptors(Object pojo)
                                               throws Exception
Specified by:
getPropertyDescriptors in class AbstractPopulateContext
Throws:
Exception

getSimpleProperty

protected Object getSimpleProperty(Object pojo,
                                   PropertyDescriptor descriptor)
                            throws Exception
Specified by:
getSimpleProperty in class AbstractPopulateContext
Throws:
Exception

getReadMethod

protected Method getReadMethod(Class clazz,
                               PropertyDescriptor descriptor)

getAccessibleMethod

protected Method getAccessibleMethod(Class clazz,
                                     Method method)

Return an accessible method (that is, one that can be invoked via reflection) that implements the specified Method. If no such method can be found, return null.

Parameters:
clazz - The class of the object
method - The method that we wish to call
Returns:
The accessible method
Since:
1.8.0


Copyright © 2013. All rights reserved.