3334353637383940
* Inner class to prevent class not found issues */ private static class LiquibasePresent { public void replaceServiceLocator() { ServiceLocator.setInstance(new CustomResolverServiceLocator( new SpringPackageScanClassResolver(logger))); }
21222324252627
@Override public void start(BundleContext bundleContext) throws Exception { PackageScanClassResolver resolver = new OSGIPackageScanClassResolver(bundleContext.getBundle()); ServiceLocator.setInstance(new CustomResolverServiceLocator(resolver)); }