Class TDMMerger
java.lang.Object
com.atlassian.confluence.plugins.merge.TDMMerger
- All Implemented Interfaces:
Merger,org.springframework.beans.factory.DisposableBean
-
Constructor Summary
ConstructorsConstructorDescriptionTDMMerger(XmlEventReaderFactory xmlEventReaderFactory, XmlOutputFactoryProvider xmlOutputFactoryProvider, com.atlassian.sal.api.executor.ThreadLocalDelegateExecutorFactory threadLocalDelegateExecutorFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()mergeContent(String base, String left, String right) Merge the content provided.mergeContent(String base, String left, String right, long timeout, @NonNull TimeUnit unit)
-
Constructor Details
-
TDMMerger
public TDMMerger(XmlEventReaderFactory xmlEventReaderFactory, XmlOutputFactoryProvider xmlOutputFactoryProvider, com.atlassian.sal.api.executor.ThreadLocalDelegateExecutorFactory threadLocalDelegateExecutorFactory)
-
-
Method Details
-
mergeContent
public MergeResult mergeContent(String base, String left, String right, long timeout, @NonNull TimeUnit unit) -
mergeContent
Description copied from interface:MergerMerge the content provided.- Specified by:
mergeContentin interfaceMerger- Parameters:
base- common base for left and right strings.left- branch 1 to merge inright- branch 2 to merge in.- Returns:
- the result of the merge. Note that implementations should never return null. If the merge failed the returned mergeresult should contain this information.
-
destroy
public void destroy()- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean
-