Add service and service_factory getters
This commit adds `service` and `service_factory` features to the
`ServiceOrchestrator`, these are needed to expose those internals for
the RestResourceProvider.
@@ -318,6 +318,20 @@ impl ServiceOrchestrator {
pub fn supported_service_types(&self) -> &[String] {
&self.supported_service_types
}
+
+ #[cfg(feature = "rest-api-actix-web-1")]
+ pub(in super::orchestrator) fn service_factories(
+ &self,
+ ) -> &[Box<dyn OrchestratableServiceFactory>] {
+ &self.service_factories
+ }
+
+ #[cfg(feature = "rest-api-actix-web-1")]
+ pub(in super::orchestrator) fn services(
+ &self,
+ ) -> Arc<Mutex<HashMap<ServiceDefinition, ManagedService>>> {
+ self.services.clone()
+ }
}
pub struct JoinHandles<T> {
