Last active
December 14, 2015 10:59
-
-
Save cqtips/5075871 to your computer and use it in GitHub Desktop.
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
import org.apache.felix.scr.annotations.Component; | |
import org.apache.felix.scr.annotations.Service; | |
import com.day.cq.replication.Preprocessor; | |
import com.day.cq.replication.ReplicationAction; | |
import com.day.cq.replication.ReplicationException; | |
import com.day.cq.replication.ReplicationOptions; | |
@Component(metatype = false, immediate = true) | |
@Service | |
public class SamplePreprocessor implements Preprocessor { | |
@Override | |
public void preprocess(ReplicationAction action, ReplicationOptions options) throws ReplicationException { | |
// run pre-replication operations here or throw an exception to cancel | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
More info on preprocessor