ConnectorServiceInitImpl.java 4.44 KB
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  com.adobe.forms.rm.RepositoryResource
 *  com.adobe.forms.rm.ResourceResolver
 *  com.adobe.forms.rm.ResourceResolver$
 *  com.adobe.forms.rm.ResourceResolver$RegisteredResource
 *  org.apache.felix.scr.annotations.Activate
 *  org.apache.felix.scr.annotations.Component
 *  org.apache.felix.scr.annotations.Reference
 *  org.apache.felix.scr.annotations.ReferencePolicy
 *  org.apache.felix.scr.annotations.Service
 *  org.osgi.service.component.ComponentContext
 *  scala.Option
 *  scala.ScalaObject
 *  scala.Some
 *  scala.reflect.ScalaSignature
 */
package com.adobe.forms.aem.rm.impl;

import com.adobe.forms.aem.impl.RepositoryServiceImpl;
import com.adobe.forms.rm.RepositoryResource;
import com.adobe.forms.rm.ResourceResolver;
import org.apache.felix.scr.annotations.Activate;
import org.apache.felix.scr.annotations.Component;
import org.apache.felix.scr.annotations.Reference;
import org.apache.felix.scr.annotations.ReferencePolicy;
import org.apache.felix.scr.annotations.Service;
import org.osgi.service.component.ComponentContext;
import scala.Option;
import scala.ScalaObject;
import scala.Some;
import scala.reflect.ScalaSignature;

@Component(immediate=1)
@Service(value={ConnectorServiceInitImpl.class})
@ScalaSignature(bytes="\u0006\u0001)4A!\u0001\u0002\u0001\u001f\tA2i\u001c8oK\u000e$xN]*feZL7-Z%oSRLU\u000e\u001d7\u000b\u0005\r!\u0011\u0001B5na2T!!\u0002\u0004\u0002\u0005Il'BA\u0004\t\u0003\r\tW-\u001c\u0006\u0003\u0013)\tQAZ8s[NT!a\u0003\u0007\u0002\u000b\u0005$wNY3\u000b\u00035\t1aY8n\u0007\u0001\u00192\u0001\u0001\t\u0019!\t\tb#D\u0001\u0013\u0015\t\u0019B#\u0001\u0003mC:<'\"A\u000b\u0002\t)\fg/Y\u0005\u0003/I\u0011aa\u00142kK\u000e$\bCA\r\u001d\u001b\u0005Q\"\"A\u000e\u0002\u000bM\u001c\u0017\r\\1\n\u0005uQ\"aC*dC2\fwJ\u00196fGRDQa\b\u0001\u0005\u0002\u0001\na\u0001P5oSRtD#A\u0011\u0011\u0005\t\u0002Q\"\u0001\u0002\t\u000f\u0011\u0002\u0001\u0019!C\u0005K\u0005\t\"/\u001a9pg&$xN]=TKJ4\u0018nY3\u0016\u0003\u0019\u0002\"aJ\u0015\u000e\u0003!R!a\u0001\u0004\n\u0005)B#!\u0006*fa>\u001c\u0018\u000e^8ssN+'O^5dK&k\u0007\u000f\u001c\u0005\bY\u0001\u0001\r\u0011\"\u0003.\u0003U\u0011X\r]8tSR|'/_*feZL7-Z0%KF$\"AL\u0019\u0011\u0005ey\u0013B\u0001\u0019\u001b\u0005\u0011)f.\u001b;\t\u000fIZ\u0013\u0011!a\u0001M\u0005\u0019\u0001\u0010J\u0019\t\rQ\u0002\u0001\u0015)\u0003'\u0003I\u0011X\r]8tSR|'/_*feZL7-\u001a\u0011)\tM2D)\u0012\t\u0003o\tk\u0011\u0001\u000f\u0006\u0003si\n1\"\u00198o_R\fG/[8og*\u00111\bP\u0001\u0004g\u000e\u0014(BA\u001f?\u0003\u00151W\r\\5y\u0015\ty\u0004)\u0001\u0004ba\u0006\u001c\u0007.\u001a\u0006\u0002\u0003\u0006\u0019qN]4\n\u0005\rC$!\u0003*fM\u0016\u0014XM\\2f\u0003\u0019\u0001x\u000e\\5ds\u0012\na)\u0003\u0002H\u0011\u00069A)\u0017(B\u001b&\u001b%BA%9\u0003=\u0011VMZ3sK:\u001cW\rU8mS\u000eL\b\"B&\u0001\t\u0003a\u0015\u0001C1di&4\u0018\r^3\u0015\u00059j\u0005\"\u0002(K\u0001\u0004y\u0015\u0001E2p[B|g.\u001a8u\u0007>tG/\u001a=u!\t\u0001v+D\u0001R\u0015\t\u00116+A\u0005d_6\u0004xN\\3oi*\u0011A+V\u0001\bg\u0016\u0014h/[2f\u0015\t1\u0006)\u0001\u0003pg\u001eL\u0017B\u0001-R\u0005A\u0019u.\u001c9p]\u0016tGoQ8oi\u0016DH\u000f\u000b\u0002K5B\u0011qgW\u0005\u00039b\u0012\u0001\"Q2uSZ\fG/\u001a\u0015\u0005\u0001y\u000b'\r\u0005\u00028?&\u0011\u0001\r\u000f\u0002\b'\u0016\u0014h/[2f\u0003\u00151\u0018\r\\;fY\u0005\u00197%A\u0011)\t\u0001)\u0007.\u001b\t\u0003o\u0019L!a\u001a\u001d\u0003\u0013\r{W\u000e]8oK:$\u0018!C5n[\u0016$\u0017.\u0019;f3\u0005\t\u0001")
public class ConnectorServiceInitImpl
implements ScalaObject {
    @Reference(policy=ReferencePolicy.DYNAMIC)
    private RepositoryServiceImpl repositoryService = null;

    private RepositoryServiceImpl repositoryService() {
        return this.repositoryService;
    }

    private void repositoryService_$eq(RepositoryServiceImpl repositoryServiceImpl) {
        this.repositoryService = repositoryServiceImpl;
    }

    @Activate
    public void activate(ComponentContext componentContext) {
        ResourceResolver..MODULE$.register(this.repositoryService().getProtocol(), RepositoryResource.class, (Option)new Some((Object)this.repositoryService()));
    }

    protected void bindRepositoryService(RepositoryServiceImpl repositoryServiceImpl) {
        this.repositoryService = repositoryServiceImpl;
    }

    protected void unbindRepositoryService(RepositoryServiceImpl repositoryServiceImpl) {
        if (this.repositoryService == repositoryServiceImpl) {
            this.repositoryService = null;
        }
    }
}