org.apache.servicemix.jbi.view
Class DotViewEndpointListener
java.lang.Object
org.apache.servicemix.jbi.view.EndpointViewRenderer
org.apache.servicemix.jbi.view.DotViewEndpointListener
- All Implemented Interfaces:
- EventListener, ContainerAware, EndpointListener, ServiceMixListener
- Direct Known Subclasses:
- DotViewFlowListener
public class DotViewEndpointListener
- extends EndpointViewRenderer
- implements ContainerAware
Creates a DOT file showing the various components
and endpoints within ServiceMix
- Version:
- $Revision: 564607 $
| Methods inherited from class org.apache.servicemix.jbi.view.EndpointViewRenderer |
externalEndpointRegistered, externalEndpointUnregistered, internalEndpointRegistered, internalEndpointUnregistered, isDirty, isRerenderOnChange, linkedEndpointRegistered, linkedEndpointUnregistered, remoteEndpointRegistered, remoteEndpointUnregistered, render, setRerenderOnChange, viewIsDirty |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DotViewEndpointListener
public DotViewEndpointListener()
getContainer
public JBIContainer getContainer()
setContainer
public void setContainer(JBIContainer container)
- Description copied from interface:
ContainerAware
- This method is called when the listener is registered
on the JBI container.
- Specified by:
setContainer in interface ContainerAware
- Parameters:
container - the container where this listener is registered
getFile
public String getFile()
setFile
public void setFile(String file)
doRender
protected void doRender()
throws Exception
- Specified by:
doRender in class EndpointViewRenderer
- Throws:
Exception
generateFile
protected void generateFile(PrintWriter writer)
throws Exception
- Throws:
Exception
formatEndpoint
protected String formatEndpoint(String key)
generateLinks
protected void generateLinks(PrintWriter writer,
Collection<String> lines,
String style)
generateLinks
protected void generateLinks(PrintWriter writer,
Collection<String> lines)
encode
protected String encode(String name)
- Lets strip out any non supported characters
Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.