Skip to content

Instantly share code, notes, and snippets.

@cqtips
Last active December 14, 2015 10:59
Show Gist options
  • Save cqtips/5075871 to your computer and use it in GitHub Desktop.
Save cqtips/5075871 to your computer and use it in GitHub Desktop.
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
}
}
@cqtips
Copy link
Author

cqtips commented Mar 3, 2013

More info on preprocessor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment