ClientLibraryImpl.java
2.27 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* com.adobe.granite.ui.clientlibs.ClientLibrary
* com.adobe.granite.ui.clientlibs.LibraryType
*/
package com.day.cq.widget.impl;
import com.day.cq.widget.ClientLibrary;
import com.day.cq.widget.LibraryType;
import com.day.cq.widget.impl.CompatHelper;
import java.util.Map;
import java.util.Set;
/*
* This class specifies class file version 49.0 but uses Java 6 signatures. Assumed Java 6.
*/
public class ClientLibraryImpl
implements ClientLibrary {
private final com.adobe.granite.ui.clientlibs.ClientLibrary lib;
public ClientLibraryImpl(com.adobe.granite.ui.clientlibs.ClientLibrary lib) {
this.lib = lib;
}
@Override
public String getPath() {
return this.lib.getPath();
}
@Override
public String getIncludePath(LibraryType type) {
return this.lib.getIncludePath(CompatHelper.convert(type));
}
@Override
public String getIncludePath(LibraryType type, boolean minified) {
return this.lib.getIncludePath(CompatHelper.convert(type), minified);
}
@Override
public Set<LibraryType> getTypes() {
return CompatHelper.convert(this.lib.getTypes());
}
@Override
public String getThemeName() {
return this.lib.getThemeName();
}
@Override
public String getThemeLibId() {
return this.lib.getThemeLibId();
}
@Override
public String[] getCategories() {
return this.lib.getCategories();
}
@Override
public String[] getEmbeddedCategories() {
return this.lib.getEmbeddedCategories();
}
@Override
public String[] getDependentCategories() {
return this.lib.getDependentCategories();
}
@Override
public String[] getChannels() {
return this.lib.getChannels();
}
@Override
public Map<String, ? extends ClientLibrary> getDependencies(boolean transitive) {
return CompatHelper.convert(this.lib.getDependencies(transitive));
}
@Override
public Map<String, ? extends ClientLibrary> getEmbedded(LibraryType type) {
return CompatHelper.convert(this.lib.getEmbedded(CompatHelper.convert(type)));
}
@Override
public boolean allowProxy() {
return this.lib.allowProxy();
}
}