Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.infinispan.commons.marshall.jboss;
 
 
This class refines ContextClassLoader to add a default class loader. The context class loader is only used when the default is null.

Author(s):
Dan Berindei <dberinde@redhat.com>
Since:
4.2
   public DefaultContextClassResolver(ClassLoader defaultClassLoader) {
      this. = new WeakReference<ClassLoader>(defaultClassLoader);
   }
   @Override
   protected ClassLoader getClassLoader() {
      ClassLoader defaultLoader = this..get();
      return defaultLoader != null ? defaultLoader : super.getClassLoader();
   }
New to GrepCode? Check out our FAQ X