|
Knopflerfish OSGi 3.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface defines a simple bundle repository service for Oscar.
| Method Summary | |
boolean |
deployBundle(java.io.PrintStream out,
java.io.PrintStream err,
java.lang.String updateLocation,
boolean isResolve,
boolean isStart)
Deploys the bundle in the repository that corresponds to the specified update location. |
BundleRecord |
getBundleRecord(int i)
Get the specified bundle record from the repository. |
BundleRecord |
getBundleRecord(java.lang.String name,
int[] version)
Get bundle record for the bundle with the specified name and version from the repository. |
BundleRecord |
getBundleRecord(java.lang.String name,
Version version)
Get bundle record for the bundle with the specified name and version from the repository. |
int |
getBundleRecordCount()
Get the number of bundles available in the repository. |
BundleRecord[] |
getBundleRecords(java.lang.String name)
Get all versions of bundle records for the specified name from the repository. |
java.lang.String[] |
getRepositoryURLs()
Get URL list of repositories. |
BundleRecord[] |
resolvePackages(PackageDeclaration[] pkgs)
Returns an array containing all bundle records in the repository that resolve the transitive closure of the passed in array of package declarations. |
void |
setRepositoryURLs(java.lang.String[] urls)
Set URL list of repositories. |
| Method Detail |
public java.lang.String[] getRepositoryURLs()
public void setRepositoryURLs(java.lang.String[] urls)
urls - a space separated list of URLs to use or null
to refresh the cached list of bundles.public int getBundleRecordCount()
public BundleRecord getBundleRecord(int i)
i - the bundle record index to retrieve.
public BundleRecord getBundleRecord(java.lang.String name,
int[] version)
name - the bundle record name to retrieve.version - three-interger array of the version associated with
the name to retrieve.
public BundleRecord getBundleRecord(java.lang.String name,
Version version)
name - the bundle record name to retrieve.version - the version associated with the name to retrieve.
public BundleRecord[] getBundleRecords(java.lang.String name)
name - the bundle record name to retrieve.
public boolean deployBundle(java.io.PrintStream out,
java.io.PrintStream err,
java.lang.String updateLocation,
boolean isResolve,
boolean isStart)
out - the stream to use for informational messages.err - the stream to use for error messages.updateLocation - the update location of the bundle to deploy.isResolve - a flag to indicates whether dependencies should
should be resolved.isStart - a flag to indicate whether installed bundles should
be started.
public BundleRecord[] resolvePackages(PackageDeclaration[] pkgs)
throws ResolveException
pkgs - an array of package declarations to resolve.
ResolveException - if any packages in the transitive
closure of packages cannot be resolved.
|
Knopflerfish OSGi 3.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||