tamaya-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anatole Tresch (JIRA)" <j...@apache.org>
Subject [jira] [Created] (TAMAYA-400) Use ThreadContext ClassLoader as default
Date Mon, 13 May 2019 23:37:00 GMT
Anatole Tresch created TAMAYA-400:
-------------------------------------

             Summary: Use ThreadContext ClassLoader as default
                 Key: TAMAYA-400
                 URL: https://issues.apache.org/jira/browse/TAMAYA-400
             Project: Tamaya
          Issue Type: New Feature
          Components: API, Core
            Reporter: Anatole Tresch
            Assignee: Anatole Tresch
             Fix For: 0.4-incubating


Use the thread class loader as default classloader. This is necessary for correctly implement
the Microprofile specs:
{code:java}
public static ClassLoader getDefaultClassLoader() {
  ClassLoader cl = Thread.currentThread().getContextClassLoader();
  if(cl==null) {
    cl = ServiceContextManager.class.getClassLoader();
  }
  return cl;
}{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message