Skip to content

Separate object creation from object initialization #116

@raner

Description

@raner

Currently, Projo supports two modes of object creation: (1) fully dependency-injected objects, where Projo creates an implementation class, and that class is passed to a DI framework for initialization, and (2) property-based initialization where initial properties are passed to a factory or create method, but no dependency injection takes place.

It would be nice to support both cases, i.e. select attributes can be explicitly initialized, but fields with injection annotations will still be properly injected by the DI framework.

To implement this, there would have to be either a separation between object creation and initialization, or alternatively, some hook that would allow DI frameworks to participate in the object creation process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions