DefaultAppProviderFactory.java 1.36 KB
/*
 * 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;
    }
}