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 a
DefaultFragmentTransformer
configured in a particular
way. You are also able to customise the constructed DefaultFragmentTransformer
in certain ways.-
Constructor Summary
ConstructorDescriptionDefaultFragmentTransformerFactoryImpl
(List<ElementTransformer> defaultElementTransformers, List<? extends FragmentTransformer> defaultFragmentTransformers, XmlOutputFactory xmlFragmentOutputFactory, XmlEventReaderFactory xmlEventReaderFactory, FragmentTransformationErrorHandler fragmentTransformationErrorHandler, com.atlassian.event.api.EventPublisher eventPublisher) -
Method Summary
Modifier and TypeMethodDescriptioncreateWithCustomFragmentTransformers
(List<? extends FragmentTransformer> additional) Create aDefaultFragmentTransformer
with an extended set ofFragmentTransformer
s.
-
Constructor Details
-
DefaultFragmentTransformerFactoryImpl
public DefaultFragmentTransformerFactoryImpl(List<ElementTransformer> defaultElementTransformers, List<? extends FragmentTransformer> defaultFragmentTransformers, XmlOutputFactory xmlFragmentOutputFactory, XmlEventReaderFactory xmlEventReaderFactory, FragmentTransformationErrorHandler fragmentTransformationErrorHandler, com.atlassian.event.api.EventPublisher eventPublisher)
-
-
Method Details
-
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
-