Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rocoto.expandVariables calls getElements too early #9

Open
ylexus opened this issue Sep 30, 2015 · 0 comments
Open

Rocoto.expandVariables calls getElements too early #9

ylexus opened this issue Sep 30, 2015 · 0 comments

Comments

@ylexus
Copy link

ylexus commented Sep 30, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant