WorkflowManager extends ComponentManagerImpl<Workflow> implements WorkflowManagerMBean, WorkflowRuntimeManager { @Override public Collection<ObjectName> getChildRuntimeInfoComponents() throws MalformedObjectNameException { Set<ObjectName> result = new TreeSet<ObjectName>(); for (ChildRuntimeInfoComponent cmb : childRuntimeInfoComponents) { result.add(cmb.createObjectName()); } return result; } private  WorkflowManager();  WorkflowManager(Workflow w, ChannelManager owner);   WorkflowManager(Workflow w, ChannelManager owner, boolean skipBackRefs); @Override ObjectName createObjectName(); @Override Workflow getWrappedComponent(); @Override long requestStartTime(); @Override long requestStopTime(); @Override @Deprecated SerializableAdaptrisMessage injectMessageWithReply(SerializableAdaptrisMessage msgToProcess); @Override @Deprecated boolean injectMessage(SerializableAdaptrisMessage msgToProcess); @Override void processAsync(SerializableMessage msgToProcess); @Override SerializableMessage process(SerializableMessage msgToProcess); @Override boolean equals(Object o); @Override String toString(); @Override int hashCode(); @Override ChannelManager getParent(); @Override String getParentId(); @Override ObjectName getParentObjectName(); @Override Collection<ObjectName> getChildRuntimeInfoComponents(); @Override boolean addChildJmxComponent(ChildRuntimeInfoComponent comp); @Override boolean removeChildJmxComponent(ChildRuntimeInfoComponent comp); @Override String createObjectHierarchyString(); @Override Collection<BaseComponentMBean> getAllDescendants(); @Override void registerMBean(); @Override void unregisterMBean(); @Override MBeanNotificationInfo[] getNotificationInfo();  }
@Test public void testConstructor_WithInterceptor_RuntimeInfoFactoryRegistered() throws Exception { String adapterName = this.getClass().getSimpleName() + "." + getName(); Adapter adapter = createAdapter(adapterName); AdapterManager adapterManager = new AdapterManager(adapter); Channel channel = createChannel("c1"); ChannelManager channelManager = new ChannelManager(channel, adapterManager); StandardWorkflow workflow = createWorkflow("w1"); workflow.setDisableDefaultMessageCount(true); workflow.getInterceptors().add(new MessageMetricsInterceptor()); WorkflowManager workflowManager = new WorkflowManager(workflow, channelManager); assertEquals(1, workflowManager.getChildRuntimeInfoComponents().size()); }
@Test public void testConstructor_WithInterceptor_NoRuntimeInfoFactoryRegistration() throws Exception { String adapterName = this.getClass().getSimpleName() + "." + getName(); Adapter adapter = createAdapter(adapterName); AdapterManager adapterManager = new AdapterManager(adapter); Channel channel = createChannel("c1"); ChannelManager channelManager = new ChannelManager(channel, adapterManager); StandardWorkflow workflow = createWorkflow("w1"); workflow.setDisableDefaultMessageCount(true); workflow.getInterceptors().add(new ThrottlingInterceptor()); WorkflowManager workflowManager = new WorkflowManager(workflow, channelManager); assertEquals(0, workflowManager.getChildRuntimeInfoComponents().size()); }