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

Pass strict flag also via "discoverComponents" #182

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kwin
Copy link
Contributor

@kwin kwin commented Mar 7, 2025

This closes #181

@kwin kwin requested review from cstamas and mcculls March 7, 2025 15:44
@@ -200,8 +203,7 @@ public DefaultPlexusContainer( final ContainerConfiguration configuration, final
final ClassSpace space = new URLClassSpace( containerRealm );
beanModules.add( new PlexusXmlBeanModule( space, variables, plexusXml ) );
final BeanScanning global = BeanScanning.INDEX == scanning ? BeanScanning.GLOBAL_INDEX : scanning;
beanModules.add( new PlexusAnnotatedBeanModule( space, variables, global,
configuration.getStrictClassPathScanning() ) );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Q: why config.getStringClasspathScanning is not good? Why adding private member instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need the flag also in the other method...

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

Successfully merging this pull request may close these issues.

Sisu "strict" mode is not so strict
2 participants