Class InvocationSensor<T>


  • public class InvocationSensor<T>
    extends java.lang.Object
    • 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 a Function lambda on a proxy object of the specified type and returns the PropertyDescriptor of the property selected.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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,
                                                                                                                                                                           NotAValidPropertyPathException
        Executes a Function lambda on a proxy object of the specified type and returns the PropertyDescriptor of the property selected.
        Parameters:
        sensorType - The type of sensor object.
        selector - The selector lambda.
        Returns:
        Returns the PropertyDescriptor selected 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.