Peter Kriens wrote:
I have not looked at the code but I assume it is based on the RFC 112
interfaces?
If so, you can just create a repository file in XML from your local
bundles and give a URL to this XML to the RepositoryAdmin ..., you can
even create the XML on the fly using your own URL handler. Just treat
your local files as a repository.
I assumed that he was talking about a locally installed bundle, not just
one available on the local disk.
-> richard
The bindex from http://www2.osgi.org/Repository/BIndex code can
generate the XML given a set of bundles.
Kind regards,
Peter Kriens
SEH> Richard S. Hall <[EMAIL PROTECTED]> writes:
I think everything is there to do what you want.
SEH> Except for the missing entry point: creating a Resource. Plenty of
SEH> OBR methods return Resources, but creating one from a Bundle is not an
SEH> available operation -- at least publicly.
The general approach I could imagine is to convert the manifest of the
locally installed bundle into a Resource (this is what the OBR impl
does when dealing with local bundles too)
SEH> Are you thinking of the work done in the
SEH> org.apache.felix.bundlerepository.
SEH> LocalRepositoryImpl.
SEH> LocalResourceImpl.initialize()
SEH> method? Obviously that's all Felix-specific, though there is a call
SEH> path there that is at least public:
SEH> new LocalRepositoryImpl.LocalResourceImpl( bundle );
Seems like you just need to try it and see where we run into
difficulty and then we can improve the OBR impl as necessary.
SEH> I'll try using LocalResourceImpl, but it would be nice if there was a
SEH> blessed, non-Felix-specific, OBR interface-based way to achieve the
SEH> same goal.
SEH> Please let me know if you discover an alternate approach I should try
SEH> first.