Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-742

pluggable classloader

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 2.2
    • None
    • None

    Description

      pluggable classloader:

      1) in current pivot trunk, TCCL, Thread.currentThread().getContextClassLoader().... is mentioned 105 times
      I suggest to centralize it and replace with pluggable classloader (which can use TCCL by default);

      2) review all other uses of Class.getResource(), which are not using TCCL, and convert when possible;

      motivation:
      https://issues.apache.org/jira/browse/PIVOT-22
      https://issues.apache.org/jira/browse/FELIX-2951
      http://njbartlett.name/2010/08/30/osgi-readiness-loading-classes.html
      http://wiki.eclipse.org/index.php/Context_Class_Loader_Enhancements
      http://stackoverflow.com/questions/2198928/better-handling-of-thread-context-classloader-in-osgi
      http://mail-archives.apache.org/mod_mbox/pivot-user/201105.mbox/%3C4DCDF889.10506@gmail.com%3E

      Attachments

        1. RunTCCL.java
          2 kB
          Andrei Pozolotin
        2. RunResult.java
          0.2 kB
          Andrei Pozolotin
        3. RunEnque.java
          0.2 kB
          Andrei Pozolotin
        4. BeanUtil.java
          1 kB
          Andrei Pozolotin
        5. patch_2011-06-15_bxml-classloader.patch
          7 kB
          Andrei Pozolotin
        6. UseCase.java
          0.1 kB
          Andrei Pozolotin
        7. CLProvider.java
          0.9 kB
          Andrei Pozolotin
        8. CLPluginTCCL.java
          0.2 kB
          Andrei Pozolotin
        9. CLPlugin.java
          0.1 kB
          Andrei Pozolotin

        Issue Links

          Activity

            People

              smartini Sandro Martini
              andrei.pozolotin Andrei Pozolotin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: