/**
 * Licensed to the Rhiot under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The licenses this file to You 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 io.rhiot.cloudplatform.service.camera.spring;

import io.rhiot.cloudplatform.connector.IoTConnector;
import io.rhiot.cloudplatform.encoding.spi.PayloadEncoding;
import io.rhiot.cloudplatform.service.binding.ServiceBinding;
import io.rhiot.cloudplatform.service.camera.api.CameraService;
import io.rhiot.cloudplatform.service.camera.DefaultCameraService;
import org.apache.camel.ProducerTemplate;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.io.File;

@Configuration
public class CameraServiceConfiguration {

    @Bean(name = "camera")
    CameraService cameraService(IoTConnector connector, ProducerTemplate producerTemplate,
                                @Value("camera.imagesDirectory:/tmp/rhiot/camera") File imagesDirectory) {
        return new DefaultCameraService(connector, producerTemplate, imagesDirectory);
    }

    @Bean
    ServiceBinding serviceBinding(PayloadEncoding payloadEncoding) {
        return new ServiceBinding(payloadEncoding, "camera");
    }

}

@@ -1581,16 +1581,18 @@
 @Value(%22
+$%7B
 camera.i
@@ -1623,16 +1623,17 @@
 t/camera
+%7D
 %22) File 

Create CameraService#process operation #480