public class ProjectBundleLoader
extends java.lang.Object
| Constructor and Description |
|---|
ProjectBundleLoader(Project project)
Instantiates a new bundle loader.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBundleDirectory()
Returns the bundle directory.
|
java.io.File |
getBundleFile(org.osgi.framework.Bundle bundle)
Return the file of the specified project bundle.
|
java.util.ArrayList<java.io.File> |
getBundleJars()
Returns the bundle jars.
|
javax.swing.DefaultListModel<java.lang.String> |
getBundleJarsListModel()
Returns the bundle jar file resources as list model.
|
java.util.Vector<org.osgi.framework.Bundle> |
getBundleVector()
Returns the bundle vector that contains all bundles loaded by the current project.
|
java.util.ArrayList<java.io.File> |
getRegularJars()
Gets the regular jars.
|
javax.swing.DefaultListModel<java.lang.String> |
getRegularJarsListModel()
Returns the regular jar file resources as list model.
|
void |
installAndStartBundles()
Load the bundle of the current project.
|
void |
installBundle(java.io.File bundleJarFile)
Installs the specified jar bundle and adds the Bundle instance to the local bundle vector
getBundleVector(). |
void |
installBundle(java.lang.String bundleJarFilePath)
Installs the specified jar bundle and adds the Bundle instance to the local bundle vector
getBundleVector(). |
void |
installBundles(java.util.List<java.io.File> fileList)
Installs the specified list of jar bundled and adds their bundle instances to the local bundle vector
getBundleVector(). |
boolean |
startBundle(org.osgi.framework.Bundle bundle)
Starts the specified bundle and return true if successful.
|
void |
startBundles(java.util.Vector<org.osgi.framework.Bundle> bundleVector)
Tries to start all specified bundles.
|
void |
stopAndUninstallBundles()
Stops and un-installs the current bundle.
|
public ProjectBundleLoader(Project project)
project - the projectpublic java.lang.String getBundleDirectory()
public java.util.ArrayList<java.io.File> getBundleJars()
public java.io.File getBundleFile(org.osgi.framework.Bundle bundle)
bundle - the bundlepublic java.util.ArrayList<java.io.File> getRegularJars()
public javax.swing.DefaultListModel<java.lang.String> getRegularJarsListModel()
public javax.swing.DefaultListModel<java.lang.String> getBundleJarsListModel()
public java.util.Vector<org.osgi.framework.Bundle> getBundleVector()
public void installAndStartBundles()
public void installBundles(java.util.List<java.io.File> fileList)
getBundleVector().bundleJarFile - the bundle jar filepublic void installBundle(java.io.File bundleJarFile)
getBundleVector().bundleJarFile - the bundle jar filepublic void installBundle(java.lang.String bundleJarFilePath)
getBundleVector().bundleJarFilePath - the bundle jar file pathpublic void startBundles(java.util.Vector<org.osgi.framework.Bundle> bundleVector)
bundleVector - the bundle vectorpublic boolean startBundle(org.osgi.framework.Bundle bundle)
bundle - the bundlepublic void stopAndUninstallBundles()