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

Added support for configurable classpath scanning #123

Merged
merged 1 commit into from Oct 30, 2018

Conversation

urbim
Copy link
Member

@urbim urbim commented Oct 30, 2018

Libraries that need to be scanned can now be specified through common configuration:

kumuluzee:
  dev:
    scan-libraries:
      - lib-1.0.0-SNAPSHOT.jar
      - lib2

The search is first performed using full library JAR name (-.jar) and if not found only with artefact name.

Additionally, an extension can specify a list of libraries that need to be scanned in the scanLibraries() method:

@EeExtensionDef(name = "SimpleExt", group = "Test")
public class SimpleExtension implements Extension {
    @Override
    public void load() {
    }

    @Override
    public void init(KumuluzServerWrapper kumuluzServerWrapper, EeConfig eeConfig) {
    }

    @Override
    public List<String> scanLibraries() {
        return Collections.singletonList("extTest");
    }
}

The same matching rules apply as for common configuration.

@urbim urbim added the Feature label Oct 30, 2018
@urbim urbim merged commit d03cd29 into master Oct 30, 2018
@urbim urbim deleted the feature/configurableClasspathScanning branch October 30, 2018 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant