aboutsummaryrefslogtreecommitdiff
path: root/src/di_container/blocking
diff options
context:
space:
mode:
Diffstat (limited to 'src/di_container/blocking')
-rw-r--r--src/di_container/blocking/binding/builder.rs4
-rw-r--r--src/di_container/blocking/mod.rs11
2 files changed, 8 insertions, 7 deletions
diff --git a/src/di_container/blocking/binding/builder.rs b/src/di_container/blocking/binding/builder.rs
index 29422b6..65fa40f 100644
--- a/src/di_container/blocking/binding/builder.rs
+++ b/src/di_container/blocking/binding/builder.rs
@@ -203,7 +203,7 @@ where
Interface: Fn<Args, Output = crate::ptr::TransientPtr<Return>>,
Func: Fn<(std::rc::Rc<DIContainerType>,), Output = Box<Interface>>,
{
- use crate::castable_factory::blocking::CastableFactory;
+ use crate::private::castable_factory::blocking::CastableFactory;
if self.di_container.has_binding::<Interface>(None) {
return Err(BindingBuilderError::BindingAlreadyExists(type_name::<
@@ -295,7 +295,7 @@ where
>,
>,
{
- use crate::castable_factory::blocking::CastableFactory;
+ use crate::private::castable_factory::blocking::CastableFactory;
if self.di_container.has_binding::<Interface>(None) {
return Err(BindingBuilderError::BindingAlreadyExists(type_name::<
diff --git a/src/di_container/blocking/mod.rs b/src/di_container/blocking/mod.rs
index 97cca59..de7ef67 100644
--- a/src/di_container/blocking/mod.rs
+++ b/src/di_container/blocking/mod.rs
@@ -58,7 +58,8 @@ use crate::dependency_history::{DependencyHistory, IDependencyHistory};
use crate::di_container::binding_storage::DIContainerBindingStorage;
use crate::di_container::blocking::binding::builder::BindingBuilder;
use crate::errors::di_container::DIContainerError;
-use crate::libs::intertrait::cast::{CastBox, CastRc};
+use crate::private::cast::boxed::CastBox;
+use crate::private::cast::rc::CastRc;
use crate::provider::blocking::{IProvider, Providable};
use crate::ptr::SomePtr;
@@ -243,7 +244,7 @@ impl DIContainer
)),
#[cfg(feature = "factory")]
Providable::Factory(factory_binding) => {
- use crate::interfaces::factory::IFactory;
+ use crate::private::factory::IFactory;
let factory = factory_binding
.cast::<dyn IFactory<(Rc<DIContainer>,), Interface>>()
@@ -256,7 +257,7 @@ impl DIContainer
}
#[cfg(feature = "factory")]
Providable::DefaultFactory(factory_binding) => {
- use crate::interfaces::factory::IFactory;
+ use crate::private::factory::IFactory;
use crate::ptr::TransientPtr;
let default_factory = factory_binding
@@ -463,7 +464,7 @@ mod tests
#[cfg(feature = "factory")]
fn can_get_factory() -> Result<(), Box<dyn Error>>
{
- use crate::castable_factory::blocking::CastableFactory;
+ use crate::private::castable_factory::blocking::CastableFactory;
use crate::ptr::FactoryPtr;
trait IUserManager
@@ -547,7 +548,7 @@ mod tests
#[cfg(feature = "factory")]
fn can_get_factory_named() -> Result<(), Box<dyn Error>>
{
- use crate::castable_factory::blocking::CastableFactory;
+ use crate::private::castable_factory::blocking::CastableFactory;
use crate::ptr::FactoryPtr;
trait IUserManager