Package com.remondis.propertypath.impl
Class InvocationSensor<T>
- java.lang.Object
-
- com.remondis.propertypath.impl.InvocationSensor<T>
-
public class InvocationSensor<T> extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInvocationSensor.Invocation
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <R,T,E extends java.lang.Exception>
com.remondis.propertypath.impl.TypedTransitiveProperty<T,R,E>getTransitiveTypedProperty(java.lang.Class<T> sensorType, PropertyPath<R,T,E> selector)Executes aFunctionlambda on a proxy object of the specified type and returns thePropertyDescriptorof the property selected.
-
-
-
Method Detail
-
getTransitiveTypedProperty
public static <R,T,E extends java.lang.Exception> com.remondis.propertypath.impl.TypedTransitiveProperty<T,R,E> getTransitiveTypedProperty(java.lang.Class<T> sensorType, PropertyPath<R,T,E> selector) throws ZeroInteractionException, ExceptionInPropertyPath, NotAValidPropertyPathExceptionExecutes aFunctionlambda on a proxy object of the specified type and returns thePropertyDescriptorof the property selected.- Parameters:
sensorType- The type of sensor object.selector- The selector lambda.- Returns:
- Returns the
PropertyDescriptorselected by the lambda. - Throws:
ZeroInteractionException- Thrown if no interaction was tracked by the field selector.ExceptionInPropertyPath- Thrown if a property path fails with an exception.NotAValidPropertyPathException- Thrown if the property path contains illegal calls to unsupported methods.
-
-