Package org.kie.services.client.api

Source Code of org.kie.services.client.api.RemoteRestRuntimeEngineFactory

package org.kie.services.client.api;

import org.kie.api.runtime.manager.RuntimeEngine;
import org.kie.services.client.api.builder.RemoteRestRuntimeEngineBuilder;
import org.kie.services.client.api.command.RemoteConfiguration;
import org.kie.services.client.api.command.RemoteRuntimeEngine;

/**
* A factory for creating REST remote API client instances of the {@link RuntimeEngine}.
* @see {@link RemoteRuntimeEngineFactory}
*/
public class RemoteRestRuntimeEngineFactory extends RemoteRuntimeEngineFactory {

    RemoteRestRuntimeEngineFactory(RemoteConfiguration config) {
        this.config = config;
    }
 
    public RemoteRuntimeEngine newRuntimeEngine() {
      return new RemoteRuntimeEngine(config);
    }

    public static RemoteRestRuntimeEngineBuilder newBuilder() {
        return newRestBuilder();
    }

}
TOP

Related Classes of org.kie.services.client.api.RemoteRestRuntimeEngineFactory

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.