- private static ActorSystem createActorSystem(BundleContext bundleContext, RemoteRpcProviderConfig config){
-
- // Create an OSGi bundle classloader for actor system
- BundleDelegatingClassLoader classLoader =
- new BundleDelegatingClassLoader(bundleContext.getBundle(),
- Thread.currentThread().getContextClassLoader());
-
- Config actorSystemConfig = config.get();
- if(LOG.isDebugEnabled()) {
- LOG.debug("Actor system configuration\n{}", actorSystemConfig.root().render());
- }
- if (config.isMetricCaptureEnabled()) {
- LOG.info("Instrumentation is enabled in actor system {}. Metrics can be viewed in JMX console.",
- config.getActorSystemName());
- }
+ public static RemoteRpcProvider createInstance(final DOMRpcProviderService rpcProviderService,
+ final DOMRpcService rpcService, final ActorSystem actorSystem, final RemoteRpcProviderConfig config) {