/*
 * Copyright 2017 Crown Copyright
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package stroom.processor.impl;

import stroom.event.logging.api.DocumentEventLog;
import stroom.event.logging.rs.api.AutoLogged;
import stroom.processor.api.ProcessorService;
import stroom.processor.shared.ProcessorResource;
import stroom.util.logging.LambdaLogger;
import stroom.util.logging.LambdaLoggerFactory;

import javax.inject.Inject;

@AutoLogged
class ProcessorResourceImpl implements ProcessorResource {
    private static final LambdaLogger LOGGER = LambdaLoggerFactory.getLogger(ProcessorResourceImpl.class);

    private final ProcessorService processorService;
    private final DocumentEventLog documentEventLog;

    @Inject
    ProcessorResourceImpl(final ProcessorService processorService,
                          final DocumentEventLog documentEventLog) {
        this.processorService = processorService;
        this.documentEventLog = documentEventLog;
    }

    @Override
    public void delete(final Integer id) {
        processorService.delete(id);
    }

    @Override
    public void setEnabled(final Integer id, final Boolean enabled) {
        processorService.setEnabled(id, enabled);
    }
}

@@ -629,58 +629,8 @@
 l;%0A%0A
-import stroom.event.logging.api.DocumentEventLog;%0A
 impo
@@ -885,16 +885,46 @@
 .Inject;
+%0Aimport javax.inject.Provider;
 %0A%0A@AutoL
@@ -1110,24 +1110,33 @@
 ivate final 
+Provider%3C
 ProcessorSer
@@ -1131,32 +1131,33 @@
 ProcessorService
+%3E
  processorServic
@@ -1161,61 +1161,16 @@
 vice
-;%0A    private final DocumentEventLog documentEventLog
+Provider
 ;%0A%0A 
@@ -1212,16 +1212,25 @@
 l(final 
+Provider%3C
 Processo
@@ -1237,16 +1237,17 @@
 rService
+%3E
  process
@@ -1259,75 +1259,16 @@
 vice
-,%0A                          final DocumentEventLog documentEventLog
+Provider
 ) %7B%0A
@@ -1296,16 +1296,24 @@
 rService
+Provider
  = proce
@@ -1327,58 +1327,16 @@
 vice
-;%0A        this.documentEventLog = documentEventLog
+Provider
 ;%0A  
@@ -1421,16 +1421,30 @@
 rService
+Provider.get()
 .delete(
@@ -1563,16 +1563,30 @@
 rService
+Provider.get()
 .setEnab

Apply REST standards to ProcessorResourceImpl