com.atlassian.plugin.osgi.container
Class OsgiContainerManager.AllowsReferenceInstall.Default

java.lang.Object
  extended by com.atlassian.plugin.osgi.container.OsgiContainerManager.AllowsReferenceInstall.Default
Enclosing interface:
OsgiContainerManager.AllowsReferenceInstall

public static class OsgiContainerManager.AllowsReferenceInstall.Default
extends Object

Host class for a static installBundle(OsgiContainerManager, File, boolean) which defaults to OsgiContainerManager.install(File, false).


Constructor Summary
OsgiContainerManager.AllowsReferenceInstall.Default()
           
 
Method Summary
static org.osgi.framework.Bundle installBundle(OsgiContainerManager osgiContainerManager, File file, boolean allowReference)
          Install a bundle as a reference if supported and requested.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OsgiContainerManager.AllowsReferenceInstall.Default

public OsgiContainerManager.AllowsReferenceInstall.Default()
Method Detail

installBundle

public static org.osgi.framework.Bundle installBundle(OsgiContainerManager osgiContainerManager,
                                                      File file,
                                                      boolean allowReference)
                                               throws OsgiContainerException
Install a bundle as a reference if supported and requested. If the OsgiContainerManager supports AllowsReferenceInstall, we allow it to decide whether to reference install, otherwise we fallback to the OsgiContainerManager.installBundle(File) api for a nonreference install.

Parameters:
osgiContainerManager - the OsgiContainerManager to install into.
file - The bundle file to install.
allowReference - true iff the file need not be copied, and the container may install a reference to it.
Returns:
the installed bundle.
Throws:
OsgiContainerException


Copyright © 2015 Atlassian. All rights reserved.