- public java.lang.AutoCloseable createInstance() {
- Broker broker = getDomBrokerDependency();
-
- ActorSystem actorSystem = getActorSystemProviderDependency().getActorSystem();
- RemoteRpcProviderConfig config = new RemoteRpcProviderConfig.Builder(actorSystem.name())
- .metricCaptureEnabled(getEnableMetricCapture())
- .mailboxCapacity(getBoundedMailboxCapacity())
- .build();
-
- return RemoteRpcProviderFactory.createInstance(broker, bundleContext, actorSystem, config);
- }
-
- public void setBundleContext(BundleContext bundleContext) {
- this.bundleContext = bundleContext;
+ public AutoCloseable createInstance() {
+ // The RemoteRpcProvider is created via blueprint and doesn't advertise any services so return a
+ // no-op here for backwards compatibility.
+ return NoopAutoCloseable.INSTANCE;