Class ProbeIntrospector


  • public class ProbeIntrospector
    extends Object
    Introspect objects and creates ProbeInfo out of them.
    Author:
    Nick Collier
    • Constructor Detail

      • ProbeIntrospector

        public ProbeIntrospector()
    • Method Detail

      • getInstance

        public static ProbeIntrospector getInstance()
        Gets the instance of the ProbeIntrospector.
        Returns:
        the instance of the ProbeIntrospector.
      • getProbeInfo

        public ProbeInfo getProbeInfo​(Class<?> probedObjectClass)
                               throws IntrospectionException
        Gets the ProbeInfo for the specified class.
        Parameters:
        probedObjectClass - the class to get ProbeInfo for.
        Returns:
        the ProbeInfo for the specified class.
        Throws:
        IntrospectionException - if there is getting the ProbeInfo.
      • getProbeId

        public String getProbeId​(Object probedObject)
        Gets the probe id for the specified object. This will return the result of calling the method annotated with @ProbeId in specfied object, or the class name of the object if there is no
        Parameters:
        probedObject -
        Returns:
        the result of calling the method annotated with @ProbeId in specfied object, or the class name of the object if there is no