Class ProbeFactory<C extends ProbeConfiguration>

  • Type Parameters:
    C -

    public class ProbeFactory<C extends ProbeConfiguration>
    extends Object
    A factory for instances of IProbe. Maintains a map that maps (element, property)-pairs to probes; each mapping expresses that the probe is capable to measure the specified property for the specified element. Mappings are created by searching the classpath for classes annotated with Probe.
    • Constructor Detail

      • ProbeFactory

        public ProbeFactory​(C configuration,
                            ProbeLocator<C> probeLocator)
    • Method Detail

      • create

        public <E> IProbe<E> create​(E element,
                                    String property,
                                    Object... measurementContexts)