Uploaded image for project: 'Chemistry (Retired)'
  1. Chemistry (Retired)
  2. CMIS-878

Allow loading classes from other OSGi Bundles in OSGi Client Wrapper

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • OpenCMIS 0.12.0
    • OpenCMIS 0.14.0
    • opencmis-client
    • None
    • OSGi

    Description

      When using the OpenCMIS OSGi Client Wrapper it is hard to load classes from other bundles. For example if you specify an own Authentication Provider class as Session Parameter then the Wrapper will not find this class when it is located inside another bundle. Same problem should occur when defining an own Cache.

      1)
      It would be nice if other bundles could register their Classloaders so that ClassLoaderUtil can use it when trying to load classes.

      2)
      Another simpler option would be to simply add "DynamicImport-Package: *" to the Manifest of the Wrapper. By doing this the Wrapper will find all classes which are exported by other bundles. Though this approach feels more like a hack since it breaks modularity.

      What do you think about it?

      Cheers
      Sascha

      Attachments

        Issue Links

          Activity

            People

              fmui Florian Müller
              shomeier Sascha Homeier
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: