use of org.apache.sling.ide.osgi.OsgiClientFactory in project sling by apache.
the class ToolingSupportBundle method before.
@Override
protected void before() throws Throwable {
EmbeddedArtifactLocator locator = Activator.getDefault().getArtifactLocator();
EmbeddedArtifact toolingBundle = locator.loadToolingSupportBundle();
OsgiClientFactory clientFactory = Activator.getDefault().getOsgiClientFactory();
OsgiClient osgiClient = clientFactory.createOsgiClient(new RepositoryInfo(config.getUsername(), config.getPassword(), config.getUrl()));
osgiClient.installBundle(toolingBundle.openInputStream(), toolingBundle.getName());
}
Aggregations