public class PropertyValueRetrieverImpl<T> extends Object implements ValueRetriever<T>
ValueRetriever
implementation.Modifier and Type | Method and Description |
---|---|
Method |
getTypeMethod(String name)
Obtains the
Method getter on the object graph that will provide
the value. |
Object |
retrieveValue(T object,
String name)
Retrieves the value from the object graph.
|
public Method getTypeMethod(String name) throws Exception
ValueRetriever
Obtains the Method
getter on the object graph that will provide
the value.
This is the Method
on the last bean in the path. It may be
null
indicating the path does not exist on the bean graph.
getTypeMethod
in interface ValueRetriever<T>
name
- Property name.Method
of the object graph that provides the
corresponding getter for the property name. May be
null
if the path not exists.Exception
- If fails to determine if value is retrievable.public Object retrieveValue(T object, String name) throws Exception
ValueRetriever
retrieveValue
in interface ValueRetriever<T>
object
- Root object of the object graph.name
- Property name.Exception
- If fails to retrieve the value.Copyright © 2005–2016. All rights reserved.