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