Package org.frankframework.util.flow
Class GraphvizJsFlowGenerator
java.lang.Object
org.frankframework.util.flow.DotFlowGenerator
org.frankframework.util.flow.GraphvizJsFlowGenerator
- All Implemented Interfaces:
 IFlowGenerator,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.InitializingBean
Initialized through Spring. Uses 
GraphvizEngine to get an available
 JavaScriptEngine to generate the Flow images with.- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddestroy()voidgenerateFlow(String xml, OutputStream outputStream) protected GraphvizEngineThe IFlowGenerator is wrapped in a SoftReference, wrapped in a ThreadLocal.org.springframework.http.MediaTypeMethods inherited from class org.frankframework.util.flow.DotFlowGenerator
generateDot 
- 
Constructor Details
- 
GraphvizJsFlowGenerator
public GraphvizJsFlowGenerator() 
 - 
 - 
Method Details
- 
afterPropertiesSet
- Specified by:
 afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Overrides:
 afterPropertiesSetin classDotFlowGenerator- Throws:
 Exception
 - 
getGraphvizEngine
The IFlowGenerator is wrapped in a SoftReference, wrapped in a ThreadLocal. When the thread is cleaned up, it will remove the instance. Or when the GC is running out of heapspace, it will remove the IFlowGenerator. This method makes sure, as long as the IFlowGenerator bean can initialize, always a valid instance is returned. - 
generateFlow
- Specified by:
 generateFlowin interfaceIFlowGenerator- Overrides:
 generateFlowin classDotFlowGenerator- Throws:
 FlowGenerationException
 - 
getFileExtension
- Specified by:
 getFileExtensionin interfaceIFlowGenerator- Overrides:
 getFileExtensionin classDotFlowGenerator
 - 
getMediaType
public org.springframework.http.MediaType getMediaType()- Specified by:
 getMediaTypein interfaceIFlowGenerator- Overrides:
 getMediaTypein classDotFlowGenerator
 - 
destroy
public void destroy()- Specified by:
 destroyin interfaceorg.springframework.beans.factory.DisposableBean- Overrides:
 destroyin classDotFlowGenerator
 
 -