Classes
The following classes are available globally.
-
Undocumented
Declaration
Swift
public class InternalByTag<Tag, T> : IsTag
-
Undocumented
Declaration
Swift
public class InternalByMany<T> : IsMany
-
Undocumented
Declaration
Swift
public class InternalByManyInBundle<T> : IsMany
-
Undocumented
Declaration
Swift
public class InternalArg<T> : IsArg
-
Component Builder. To create a used function
See moreregister(_:)
in classContainerBuilder
. The class allows you to configure all the necessary properties for the component.Declaration
Swift
public final class DIComponentBuilder<Impl>
-
A container holding all registered components, allows you to register new components, parts, frameworks and allows you to receive objects by type.
See moreDeclaration
Swift
public final class DIContainer
-
сlass to extend possible actions related to object creation
See moreDeclaration
Swift
public class DIExtensions
-
Special class for resolve object by type with tag. see method:
byTag
Declaration
Swift
public final class DIByTag<Tag, T> : InternalByTag<Tag, T>
-
Special class for resolve many object. see method:
many
Declaration
Swift
public final class DIMany<T> : InternalByMany<T>
-
Special class for resolve many object in bundle. see method:
manyInBundle
Declaration
Swift
public final class DIManyInBundle<T> : InternalByManyInBundle<T>
-
Special class for resolve object use arguments. see method:
arg
Declaration
Swift
public final class DIArg<T> : InternalArg<T>
-
Base class for scan. It doesn’t make much sense to inherit from it. see:
DIScanFramework
andDIScanPart
Declaration
Swift
open class DIScan
-
Allows you to find all frameworks marked as
DIScanned
in the application that satisfy certain characteristics: predicate - allows you to check a framework type both by its name or using the type itself Using:class YourScanFramework: DIScanFramework { override class var predicate: Predicate? { return .name({ $0.contains("ScannedFramework") }) } }
OR
See moreclass YourScanFramework: DIScanFramework { override class var predicate: Predicate? { return .type({ $0 is YourCustomFrameworkBase.Type }) } }
Declaration
Swift
open class DIScanFramework : DIScan, DIFramework
-
Allows you to find all parts marked as
DIScanned
in the application that satisfy certain characteristics: predicate - allows you to check a part type both by its name or using the type itself bundle - leaves only those parts that are in the specified bundle Using:class YourScanPart: DIScanPart { override class var predicate: Predicate? { return .name({ $0.contains("ScannedPart") }) } override class var bundle: Bundle? { return YourBundle() } }
OR
See moreclass YourScanPart: DIScanPart { override class var predicate: Predicate? { return .type({ $0 is YourCustomPartBase.Type }) } override class var bundle: Bundle? { return Bundle(for: YourClass.self) } }
-
The class provides the features to inject dependencies of view/window controllers in a storyboard. Needs to specify a container to inject dependencies in view/window controllers.
See moreDeclaration
Swift
public final class DIStoryboard : _DIStoryboardBase