com.hazelcast.query.impl.getters
Class ReflectionHelper

java.lang.Object
  extended by com.hazelcast.query.impl.getters.ReflectionHelper

public final class ReflectionHelper
extends Object

Scans your classpath, indexes the metadata, allows you to query it on runtime.


Method Summary
static Comparable extractValue(Object object, String attributeName)
           
static AttributeType getAttributeType(Class klass)
           
static AttributeType getAttributeType(Object value, String attribute)
           
static
<T> T
invokeMethod(Object object, String methodName)
           
static void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAttributeType

public static AttributeType getAttributeType(Class klass)

reset

public static void reset()

getAttributeType

public static AttributeType getAttributeType(Object value,
                                             String attribute)

extractValue

public static Comparable extractValue(Object object,
                                      String attributeName)
                               throws Exception
Throws:
Exception

invokeMethod

public static <T> T invokeMethod(Object object,
                                 String methodName)
                      throws RuntimeException
Throws:
RuntimeException


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.