Skip to content

Rocoto.expandVariables calls getElements too early #9

@ylexus

Description

@ylexus

In our configuration, adding Rocoto.expandVariables() causes container to fail with several errors like this:

  1. Could not expose() a.b.c.d.ContainerComponent annotated with @OrderedNamed(order=21,value=CompositeContainerComponent:9d9dbef7-93e8-4cf8-8be7-74c697624f33, it must be explicitly bound.
    at
    ...

I am not 100% sure why, but what fixes it is making a copy of Rocoto.java that makes a call to Modules.getElements( baseModules ) inside configure() and not inside expandVariables(). I suspect the elements returned at the point Guice is configuring is different.

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