Search in sources :

Example 1 with OsgiClientFactory

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());
}
Also used : OsgiClientFactory(org.apache.sling.ide.osgi.OsgiClientFactory) RepositoryInfo(org.apache.sling.ide.transport.RepositoryInfo) EmbeddedArtifactLocator(org.apache.sling.ide.artifacts.EmbeddedArtifactLocator) OsgiClient(org.apache.sling.ide.osgi.OsgiClient) EmbeddedArtifact(org.apache.sling.ide.artifacts.EmbeddedArtifact)

Aggregations

EmbeddedArtifact (org.apache.sling.ide.artifacts.EmbeddedArtifact)1 EmbeddedArtifactLocator (org.apache.sling.ide.artifacts.EmbeddedArtifactLocator)1 OsgiClient (org.apache.sling.ide.osgi.OsgiClient)1 OsgiClientFactory (org.apache.sling.ide.osgi.OsgiClientFactory)1 RepositoryInfo (org.apache.sling.ide.transport.RepositoryInfo)1