@Test public void package_root_should_valid() { String pluginPackageRoot = configurationPlugin.pluginPackageRoot(); assertThat(pluginPackageRoot).contains("META-INF.configuration"); }
@Override public String pluginPackageRoot() { ApplicationConfig applicationConfig = coffig.get(ApplicationConfig.class); if (applicationConfig.getBasePackages().isEmpty()) { if (applicationConfig.isPackageScanWarning()) { LOGGER.warn("No application base package configured, only classes in 'org.seedstack.*' packages will " + "be scanned"); } } else { LOGGER.info("Application base package(s) to be scanned: " + String.join(", ", applicationConfig.getBasePackages())); } Set<String> basePackages = new HashSet<>(applicationConfig.getBasePackages()); basePackages.add(CONFIGURATION_PACKAGE); return String.join(",", basePackages); }
ConfigurationPlugin extends AbstractPlugin implements ApplicationProvider { @Override public String pluginPackageRoot() { ApplicationConfig applicationConfig = coffig.get(ApplicationConfig.class); if (applicationConfig.getBasePackages().isEmpty()) { if (applicationConfig.isPackageScanWarning()) { LOGGER.warn("No application base package configured, only classes in 'org.seedstack.*' packages will " + "be scanned"); } } else { LOGGER.info("Application base package(s) to be scanned: " + String.join(", ", applicationConfig.getBasePackages())); } Set<String> basePackages = new HashSet<>(applicationConfig.getBasePackages()); basePackages.add(CONFIGURATION_PACKAGE); return String.join(",", basePackages); } }
ConfigurationPlugin extends AbstractPlugin implements ApplicationProvider { @Override public String pluginPackageRoot() { ApplicationConfig applicationConfig = coffig.get(ApplicationConfig.class); if (applicationConfig.getBasePackages().isEmpty()) { if (applicationConfig.isPackageScanWarning()) { LOGGER.warn("No application base package configured, only classes in 'org.seedstack.*' packages will " + "be scanned"); } } else { LOGGER.info("Application base package(s) to be scanned: " + String.join(", ", applicationConfig.getBasePackages())); } Set<String> basePackages = new HashSet<>(applicationConfig.getBasePackages()); basePackages.add(CONFIGURATION_PACKAGE); return String.join(",", basePackages); }  }
ConfigurationPlugin extends AbstractPlugin implements ApplicationProvider { @Override public String pluginPackageRoot() { ApplicationConfig applicationConfig = coffig.get(ApplicationConfig.class); if (applicationConfig.getBasePackages().isEmpty()) { if (applicationConfig.isPackageScanWarning()) { LOGGER.warn("No application base package configured, only classes in 'org.seedstack.*' packages will " + "be scanned"); } } else { LOGGER.info("Application base package(s) to be scanned: " + String.join(", ", applicationConfig.getBasePackages())); } Set<String> basePackages = new HashSet<>(applicationConfig.getBasePackages()); basePackages.add(CONFIGURATION_PACKAGE); return String.join(",", basePackages); }  @Override String name(); @Override void provideContainerContext(Object containerContext); @Override String pluginPackageRoot(); @Override Collection<ClasspathScanRequest> classpathScanRequests(); @SuppressWarnings("unchecked") @Override InitState init(InitContext initContext); @Override void start(Context context); @Override void stop(); @Override Object nativeUnitModule(); @Override Application getApplication(); }
ConfigurationPlugin extends AbstractPlugin implements ApplicationProvider { @Override public String pluginPackageRoot() { ApplicationConfig applicationConfig = coffig.get(ApplicationConfig.class); if (applicationConfig.getBasePackages().isEmpty()) { if (applicationConfig.isPackageScanWarning()) { LOGGER.warn("No application base package configured, only classes in 'org.seedstack.*' packages will " + "be scanned"); } } else { LOGGER.info("Application base package(s) to be scanned: " + String.join(", ", applicationConfig.getBasePackages())); } Set<String> basePackages = new HashSet<>(applicationConfig.getBasePackages()); basePackages.add(CONFIGURATION_PACKAGE); return String.join(",", basePackages); }  @Override String name(); @Override void provideContainerContext(Object containerContext); @Override String pluginPackageRoot(); @Override Collection<ClasspathScanRequest> classpathScanRequests(); @SuppressWarnings("unchecked") @Override InitState init(InitContext initContext); @Override void start(Context context); @Override void stop(); @Override Object nativeUnitModule(); @Override Application getApplication(); static final String NAME; }