StandardFDExtensionManager implements FDExtensionManager { @Override public Set<FDComponentType> getProcessorTypes() { if (processors == null) { synchronized (this) { if (processors == null) { processors = Collections.unmodifiableSet( createSummaries(agentManifest, ComponentManifest::getProcessors)); } } } return processors; } 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 testGetProcessorTypes() { final Set<FDComponentType> processorTypes = extensionManager.getProcessorTypes(); assertNotNull(processorTypes); assertEquals(2, processorTypes.size()); final FDComponentType processorType = processorTypes.stream() .filter(p -> p.getType().equals(invokeHttpProcessor.getType())) .findFirst() .orElse(null); assertEquals(invokeHttpProcessor.getType(), processorType.getType()); assertEquals(httpBundle.getGroup(), processorType.getGroup()); assertEquals(httpBundle.getArtifact(), processorType.getArtifact()); assertEquals(httpBundle.getVersion(), processorType.getVersion()); }