Skip to content

initialize method of ViewModel is called twice #308

@sideisra

Description

@sideisra

When using Weld as DI framework it is possible to annotate a method with @PostConstruct to make Weld call this method after intantiation.

I accidentally named this method "initialize" which collides with a feature of FluentViewLoader. This method is called twice. Weld calls it because of @PostConstruct and the FluentViewLoader calls it because of its name.

This feature should be documented more clearly. Would it be possible to throw an exception when this constellation appears? It would avoid a lot of headache ;-)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions