diff --git a/docs/poodinis/autowire/Autowire.html b/docs/poodinis/autowire/Autowire.html deleted file mode 100644 index 0341fd0..0000000 --- a/docs/poodinis/autowire/Autowire.html +++ /dev/null @@ -1,135 +0,0 @@ - - - - - - Struct Autowire - - - - -
- -
-
-

Struct Autowire

UDA for annotating class members as candidates for autowiring. -

-
- -
- struct Autowire(QualifierType) - ; -
-
-
-

Optionally a template parameter can be supplied to specify the type of a qualified class. The qualified type - of a concrete class is used to autowire members declared by supertype. If no qualifier is supplied, the type - of the member is used as qualifier. -

-
- -

Examples

-

Annotate member of class to be autowired: -

-
class Car {
-   @Autowire
-   public Engine engine;
-}
- -

Annotate member of class with qualifier: -

-
class FuelEngine : Engine { ... }
-class ElectricEngine : Engine { ... }
-
-class HybridCar {
-   @Autowire!FuelEngine
-   public Engine fuelEngine;
-
-   @Autowire!ElectricEngine
-   public Engine electricEngine;
-}
-

The members of an instance of "HybridCar" will now be autowired properly, because the autowire mechanism will - autowire member "fuelEngine" as if it's of type "FuelEngine". This means that the members of instance "fuelEngine" - will also be autowired because the autowire mechanism knows that member "fuelEngine" is an instance of "FuelEngine" -

-
- -
- -
- - \ No newline at end of file diff --git a/docs/poodinis/autowire/autowire.html b/docs/poodinis/autowire/autowire.html deleted file mode 100644 index 2520cb9..0000000 --- a/docs/poodinis/autowire/autowire.html +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - Function autowire - - - - -
- -
-
-

Function autowire

Autowires members of a given instance using dependencies registered in the given container. -

-
- -
- void autowire(Type) - ( -
-   shared(DependencyContainer) container, -
-   Type instance -
- ); -
-
-
-

All members of the given instance, which are annotated using the "Autowire" UDA, are autowired. - Members can have any visibility (public, private, etc). All members are resolved using the given - container. Qualifiers are used to determine the type of class to resolve for any member of instance. -

-
- -

See Also

-

Autowire -

-
- -
- -
- - \ No newline at end of file