public interface ValueReadHandleFactory
| Modifier and Type | Method and Description |
|---|---|
ValueReadHandle<?> |
createForField(Field field) |
ValueReadHandle<?> |
createForMethod(Method method) |
static ValueReadHandleFactory |
usingJavaLangReflect() |
static ValueReadHandleFactory |
usingMethodHandle(MethodHandles.Lookup lookup) |
ValueReadHandle<?> createForField(Field field) throws IllegalAccessException
IllegalAccessExceptionValueReadHandle<?> createForMethod(Method method) throws IllegalAccessException
IllegalAccessExceptionstatic ValueReadHandleFactory usingJavaLangReflect()
java.lang.reflect
to get the value of a field/method,
i.e Method.invoke(Object, Object...) and Field.get(Object).static ValueReadHandleFactory usingMethodHandle(MethodHandles.Lookup lookup)
lookup - A lookup with sufficient access rights to access all relevant fields and methods.MethodHandle
to get the value of a field/method.Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.