DefaultAppProviderFactory.java
1.36 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
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* org.apache.felix.scr.annotations.Component
* org.apache.felix.scr.annotations.Properties
* org.apache.felix.scr.annotations.Property
* org.apache.felix.scr.annotations.Service
* org.apache.sling.api.resource.Resource
*/
package com.adobe.cq.mobile.platform.impl;
import com.adobe.cq.mobile.platform.impl.AbstractMobileAppProviderFactory;
import com.adobe.cq.mobile.platform.impl.DefaultAppProviderImpl;
import com.adobe.cq.mobile.platform.impl.MobileAppProvider;
import com.adobe.cq.mobile.platform.impl.MobileAppProviderFactory;
import org.apache.felix.scr.annotations.Component;
import org.apache.felix.scr.annotations.Properties;
import org.apache.felix.scr.annotations.Property;
import org.apache.felix.scr.annotations.Service;
import org.apache.sling.api.resource.Resource;
@Component
@Service
@Properties(value={@Property(name="service.description", value={"Default mobile app provider service"}), @Property(name="service.ranking", intValue={-100}, propertyPrivate=1)})
public class DefaultAppProviderFactory
extends AbstractMobileAppProviderFactory
implements MobileAppProviderFactory {
@Override
public MobileAppProvider getMobileAppProvider(Resource res) {
if (this.accepts(res)) {
return new DefaultAppProviderImpl(res);
}
return null;
}
}