- public static RemoteRpcProvider createInstance(final Broker broker, final BundleContext bundleContext){
- RemoteRpcProvider rpcProvider =
- new RemoteRpcProvider(ActorSystemFactory.getInstance(), (RpcProvisionRegistry) broker);
- broker.registerProvider(rpcProvider, bundleContext);
- return rpcProvider;
+ public static RemoteRpcProvider createInstance(final Broker broker, final BundleContext bundleContext,
+ final ActorSystem actorSystem, final RemoteRpcProviderConfig config) {
+
+ final RemoteRpcProvider rpcProvider = new RemoteRpcProvider(actorSystem, (DOMRpcProviderService) broker, config);
+
+ broker.registerProvider(rpcProvider);
+ return rpcProvider;