net.officefloor.plugin.value.retriever
Class ValueRetrieverSourceImpl

java.lang.Object
  extended by net.officefloor.plugin.value.retriever.ValueRetrieverSourceImpl
All Implemented Interfaces:
ValueRetrieverSource

public class ValueRetrieverSourceImpl
extends Object
implements ValueRetrieverSource

ValueRetrieverSource implementation.

Author:
Daniel Sagenschneider

Constructor Summary
ValueRetrieverSourceImpl()
           
 
Method Summary
 void init(boolean isCaseInsensitive)
          Initialises.
static Object retrieveValue(Object object, Method method)
          Retrieves the value from the object.
<T> ValueRetriever<T>
sourceValueRetriever(Class<T> type)
          Sources the ValueRetriever for the type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueRetrieverSourceImpl

public ValueRetrieverSourceImpl()
Method Detail

retrieveValue

public static Object retrieveValue(Object object,
                                   Method method)
                            throws Exception
Retrieves the value from the object.

Parameters:
object - Object containing the value.
method - Method to retrieve the value.
Throws:
Exception - If fails to retrieve the value.

init

public void init(boolean isCaseInsensitive)
          throws Exception
Description copied from interface: ValueRetrieverSource
Initialises.

Specified by:
init in interface ValueRetrieverSource
Parameters:
isCaseInsensitive - Indicates if property name comparison is case insensitive.
Throws:
Exception

sourceValueRetriever

public <T> ValueRetriever<T> sourceValueRetriever(Class<T> type)
                                       throws Exception
Description copied from interface: ValueRetrieverSource
Sources the ValueRetriever for the type.

Specified by:
sourceValueRetriever in interface ValueRetrieverSource
Parameters:
type - Type.
Returns:
ValueRetriever for the type.
Throws:
Exception - If fails to obtain the ValueRetriever.


Copyright © 2005-2013. All Rights Reserved.