org.apache.servicemix.jbi.view
Class DotViewEndpointListener

java.lang.Object
  extended by org.apache.servicemix.jbi.view.EndpointViewRenderer
      extended by 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 $

Constructor Summary
DotViewEndpointListener()
           
 
Method Summary
protected  void doRender()
           
protected  String encode(String name)
          Lets strip out any non supported characters
protected  String formatEndpoint(String key)
           
protected  void generateFile(PrintWriter writer)
           
protected  void generateLinks(PrintWriter writer, Collection<String> lines)
           
protected  void generateLinks(PrintWriter writer, Collection<String> lines, String style)
           
 JBIContainer getContainer()
           
 String getFile()
           
 void setContainer(JBIContainer container)
          This method is called when the listener is registered on the JBI container.
 void setFile(String file)
           
 
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
 

Constructor Detail

DotViewEndpointListener

public DotViewEndpointListener()
Method Detail

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.