DefaultDiffService.java
1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* com.day.cq.commons.DiffService
* org.apache.felix.scr.annotations.Component
* org.apache.felix.scr.annotations.Reference
* org.apache.felix.scr.annotations.Service
*/
package com.day.cq.wcm.foundation.impl.diff;
import com.day.cq.wcm.foundation.DiffService;
import org.apache.felix.scr.annotations.Component;
import org.apache.felix.scr.annotations.Reference;
import org.apache.felix.scr.annotations.Service;
@Component(metatype=0)
@Service(value={DiffService.class})
public class DefaultDiffService
implements DiffService {
@Reference
private com.day.cq.commons.DiffService baseSvc;
public String diff(String origText, String diffText, boolean isRichText) {
return this.baseSvc.diff(origText, diffText, isRichText);
}
protected void bindBaseSvc(com.day.cq.commons.DiffService diffService) {
this.baseSvc = diffService;
}
protected void unbindBaseSvc(com.day.cq.commons.DiffService diffService) {
if (this.baseSvc == diffService) {
this.baseSvc = null;
}
}
}