Last active
July 2, 2020 10:22
-
-
Save sreeni-b/673ea729fd26489c4121b2cacd9d9041 to your computer and use it in GitHub Desktop.
Master Link Transformer Factory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.aemks.core.transformers; | |
import org.apache.sling.rewriter.Transformer; | |
import org.apache.sling.rewriter.TransformerFactory; | |
import org.osgi.service.component.annotations.Component; | |
/** | |
* This link transformer factory is used to rewrite master links to live copy links | |
*/ | |
@Component( | |
service = TransformerFactory.class, | |
property = { | |
"pipeline.type=referencelinkrewriter" | |
} | |
) | |
public class ReferenceLinkTransformerFactory implements TransformerFactory { | |
@Override public Transformer createTransformer() { | |
return new ReferenceLinkTransformer(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment