com.atlassian.confluence.content.render.xhtml.transformers
Class LazyLoadingFragmentTransformer

java.lang.Object
  extended by com.atlassian.confluence.content.render.xhtml.transformers.LazyLoadingFragmentTransformer
All Implemented Interfaces:
FragmentTransformer

public class LazyLoadingFragmentTransformer
extends java.lang.Object
implements FragmentTransformer

A FragmentTransformer which delegates to another FragmentTransformer identified by bean id. The delegate FragmentTransformer is only loaded when first required. This class is useful for resolving circular dependencies in Spring configuration.


Constructor Summary
LazyLoadingFragmentTransformer(java.lang.String delegateId)
           
 
Method Summary
 boolean handles(javax.xml.stream.events.StartElement startElementEvent, ConversionContext conversionContext)
           
 Streamable transform(javax.xml.stream.XMLEventReader reader, FragmentTransformer mainFragmentTransformer, ConversionContext conversionContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LazyLoadingFragmentTransformer

public LazyLoadingFragmentTransformer(java.lang.String delegateId)
Method Detail

handles

public boolean handles(javax.xml.stream.events.StartElement startElementEvent,
                       ConversionContext conversionContext)
Specified by:
handles in interface FragmentTransformer

transform

public Streamable transform(javax.xml.stream.XMLEventReader reader,
                            FragmentTransformer mainFragmentTransformer,
                            ConversionContext conversionContext)
                     throws XhtmlException
Specified by:
transform in interface FragmentTransformer
Throws:
XhtmlException


Copyright © 2003-2014 Atlassian. All Rights Reserved.