Class DefaultFragmentTransformerFactoryImpl
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.transformers.DefaultFragmentTransformerFactoryImpl
-
- All Implemented Interfaces:
DefaultFragmentTransformerFactory
public class DefaultFragmentTransformerFactoryImpl extends Object implements DefaultFragmentTransformerFactory
A factory class that can be used to construct aDefaultFragmentTransformer
configured in a particular way. You are also able to customise the constructedDefaultFragmentTransformer
in certain ways.
-
-
Constructor Summary
Constructors Constructor Description DefaultFragmentTransformerFactoryImpl(List<ElementTransformer> defaultElementTransformers, List<? extends FragmentTransformer> defaultFragmentTransformers, XmlOutputFactory xmlFragmentOutputFactory, XmlEventReaderFactory xmlEventReaderFactory, FragmentTransformationErrorHandler fragmentTransformationErrorHandler, com.atlassian.event.api.EventPublisher eventPublisher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DefaultFragmentTransformer
createDefault()
DefaultFragmentTransformer
createWithCustomFragmentTransformers(List<? extends FragmentTransformer> additional)
Create aDefaultFragmentTransformer
with an extended set ofFragmentTransformer
s.
-
-
-
Constructor Detail
-
DefaultFragmentTransformerFactoryImpl
public DefaultFragmentTransformerFactoryImpl(List<ElementTransformer> defaultElementTransformers, List<? extends FragmentTransformer> defaultFragmentTransformers, XmlOutputFactory xmlFragmentOutputFactory, XmlEventReaderFactory xmlEventReaderFactory, FragmentTransformationErrorHandler fragmentTransformationErrorHandler, com.atlassian.event.api.EventPublisher eventPublisher)
-
-
Method Detail
-
createDefault
public DefaultFragmentTransformer createDefault()
- Specified by:
createDefault
in interfaceDefaultFragmentTransformerFactory
- Returns:
- a default configuration of transformer
-
createWithCustomFragmentTransformers
public DefaultFragmentTransformer createWithCustomFragmentTransformers(List<? extends FragmentTransformer> additional)
Description copied from interface:DefaultFragmentTransformerFactory
Create aDefaultFragmentTransformer
with an extended set ofFragmentTransformer
s. You can specify additional FragmentTransformers to be applied before the default one which effectively provides a mechanism to override the default FragmentTransformers since once a Fragment has been transformed it will no longer match the default FragmentTransformer that may otherwise have applied.- Specified by:
createWithCustomFragmentTransformers
in interfaceDefaultFragmentTransformerFactory
- Parameters:
additional
- the List of FragmentTransformer to be applied before the default FragmentTransformers.- Returns:
- an appropriately configured DefaultFragmentTransformer
-
-