StandardFDExtensionManager implements FDExtensionManager { @Override public Set<FDComponentType> getControllerServiceTypes() { if (controllerServices == null) { synchronized (this) { if (controllerServices == null) { controllerServices = Collections.unmodifiableSet( createSummaries(agentManifest, ComponentManifest::getControllerServices)); } } } return controllerServices; } StandardFDExtensionManager(final AgentManifest agentManifest); @Override Set<FDComponentType> getProcessorTypes(); @Override ProcessorDefinition getProcessorDefinition(final String type, final Bundle bundle); @Override FDProcessor createProcessor(final String type, final Bundle bundle); @Override Optional<PropertyDescriptor> getProcessorPropertyDescriptor(final String type, final Bundle bundle, final String propertyName); @Override PropertyDescriptor createDynamicProcessorPropertyDescriptor(final String type, final Bundle bundle, final String propertyName); @Override Set<FDComponentType> getControllerServiceTypes(); @Override ControllerServiceDefinition getControllerServiceDefinition(final String type, final Bundle bundle); @Override FDControllerService createControllerService(final String type, final Bundle bundle); @Override Optional<PropertyDescriptor> getControllerServicePropertyDescriptor(final String type, final Bundle bundle, final String propertyName); @Override PropertyDescriptor createDynamicControllerServicePropertyDescriptor(final String type, final Bundle bundle, final String propertyName);  }
@Test public void testControllerServiceTypes() { final Set<FDComponentType> serviceTypes = extensionManager.getControllerServiceTypes(); assertNotNull(serviceTypes); assertEquals(2, serviceTypes.size()); final FDComponentType serviceType = serviceTypes.stream() .filter(s -> s.getType().equals(sslContextService.getType())) .findFirst() .orElse(null); assertEquals(sslContextService.getType(), serviceType.getType()); assertEquals(systemBundle.getGroup(), serviceType.getGroup()); assertEquals(systemBundle.getArtifact(), serviceType.getArtifact()); assertEquals(systemBundle.getVersion(), serviceType.getVersion()); }