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 @{link GraphvizEngine} to get an available
JavaScriptEngine to generate the Flow images with.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
destroy()
void
generateFlow
(String xml, OutputStream outputStream) protected GraphvizEngine
The IFlowGenerator is wrapped in a SoftReference, wrapped in a ThreadLocal.org.springframework.http.MediaType
Methods inherited from class org.frankframework.util.flow.DotFlowGenerator
generateDot
-
Constructor Details
-
GraphvizJsFlowGenerator
public GraphvizJsFlowGenerator()
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Overrides:
afterPropertiesSet
in 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:
generateFlow
in interfaceIFlowGenerator
- Overrides:
generateFlow
in classDotFlowGenerator
- Throws:
FlowGenerationException
-
getFileExtension
- Specified by:
getFileExtension
in interfaceIFlowGenerator
- Overrides:
getFileExtension
in classDotFlowGenerator
-
getMediaType
public org.springframework.http.MediaType getMediaType()- Specified by:
getMediaType
in interfaceIFlowGenerator
- Overrides:
getMediaType
in classDotFlowGenerator
-
destroy
public void destroy()- Specified by:
destroy
in interfaceorg.springframework.beans.factory.DisposableBean
- Overrides:
destroy
in classDotFlowGenerator
-