Skip to content

Hydration Strategies #434

@nagibyro

Description

@nagibyro

Looking at the attribute generate method it looks like there is only support for setter injection. It would be nice to be able to customize hydration for different types of objects -- such as immutable objects whose attributes are only set through the constructor. Perhaps creating a hydrationStrategyInterface or something of that nature. This would allow others to create strategies that work better with their objects such as using reflection to set attributes instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions