Class DhcpDetectorFactory

    • Constructor Detail

      • DhcpDetectorFactory

        public DhcpDetectorFactory()
    • Method Detail

      • setDhcpd

        public void setDhcpd​(Dhcpd dhcpd)
      • createDetector

        public DhcpDetector createDetector​(java.util.Map<java.lang.String,​java.lang.String> properties)
        Description copied from interface: ServiceDetectorFactory
        Instantiates a new detector and set bean properties. One of the ways to set bean properties is using Spring @BeanWrapper
         
                 BeanWrapper wrapper = PropertyAccessorFactory.forBeanPropertyAccess(serviceDetector);
                 wrapper.setPropertyValues(properties);
         
         
        Detectors are treated as protoypes and should only be used for a single call to "isServiceDetected".
        Specified by:
        createDetector in interface ServiceDetectorFactory<DhcpDetector>
        Overrides:
        createDetector in class GenericServiceDetectorFactory<DhcpDetector>
        Parameters:
        properties - are used to set properties on detector bean.