|
Knopflerfish OSGi 2.4.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BundleRepositoryService
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. |
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 |
---|
java.lang.String[] getRepositoryURLs()
void setRepositoryURLs(java.lang.String[] urls)
urls
- a space separated list of URLs to use or null
to refresh the cached list of bundles.int getBundleRecordCount()
BundleRecord getBundleRecord(int i)
i
- the bundle record index to retrieve.
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.
BundleRecord[] getBundleRecords(java.lang.String name)
name
- the bundle record name to retrieve.
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.
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 2.4.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |