@Component public class DhcpDetectorFactory extends GenericServiceDetectorFactory<DhcpDetector>
Constructor and Description |
---|
DhcpDetectorFactory() |
Modifier and Type | Method and Description |
---|---|
DhcpDetector |
createDetector(Map<String,String> properties)
Instantiates a new detector and set bean properties.
|
void |
setDhcpd(Dhcpd dhcpd) |
afterDetect, buildRequest, getDetectorClass, setBeanProperties
public void setDhcpd(Dhcpd dhcpd)
public DhcpDetector createDetector(Map<String,String> properties)
ServiceDetectorFactory
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".createDetector
in interface ServiceDetectorFactory<DhcpDetector>
createDetector
in class GenericServiceDetectorFactory<DhcpDetector>
properties
- are used to set properties on detector bean.Copyright © 2020. All rights reserved.