Package org.jboss.weld.resources.spi

Examples of org.jboss.weld.resources.spi.ResourceLoadingException


   public Class<?> classForName(String name)
   {
      ClassLoader classLoader = clRef.get();
      if (classLoader == null)
         throw new ResourceLoadingException("Error loading class " + name + ", classloader GC-ed.");

      try
      {
         return classLoader.loadClass(name);
      }
      catch (ClassNotFoundException e)
      {
         throw new ResourceLoadingException("Error loading class " + name, e);
      }
      catch (NoClassDefFoundError e)
      {
         throw new ResourceLoadingException("Error loading class " + name, e);
      }
      catch (TypeNotPresentException e)
      {
         throw new ResourceLoadingException("Error loading class " + name, e);
      }
   }
View Full Code Here


         }
         return resources;
      }
      catch (IOException e)
      {
         throw new ResourceLoadingException("Error loading resource " + name, e);
      }
   }
View Full Code Here

            }
            final Class<?> clazz = module.getClassLoader().loadClass(name);
            classes.put(name, clazz);
            return clazz;
        } catch (NoClassDefFoundError e) {
            throw new ResourceLoadingException(e);
        } catch (ClassNotFoundException e) {
            throw new ResourceLoadingException(e);
        } catch (LinkageError e) {
            throw new ResourceLoadingException(e);
        }
    }
View Full Code Here

    @Override
    public URL getResource(String name) {
        try {
            return module.getClassLoader().getResource(name);
        } catch (Exception e) {
            throw new ResourceLoadingException(e);
        }
    }
View Full Code Here

            while (urls.hasMoreElements()) {
                resources.add(urls.nextElement());
            }
            return resources;
        } catch (Exception e) {
            throw new ResourceLoadingException(e);
        }

    }
View Full Code Here

         classes.put(name, clazz);
         return clazz;
      }
      catch (NoClassDefFoundError e)
      {
         throw new ResourceLoadingException(e);
      }
      catch (ClassNotFoundException e)
      {
         throw new ResourceLoadingException(e);
      }
      catch (LinkageError e)
      {
         throw new ResourceLoadingException(e);
      }
   }
View Full Code Here

      {
         return addon.getClassLoader().getResource(name);
      }
      catch (Exception e)
      {
         throw new ResourceLoadingException(e);
      }
   }
View Full Code Here

         }
         return resources;
      }
      catch (Exception e)
      {
         throw new ResourceLoadingException(e);
      }

   }
View Full Code Here

            }
            final Class<?> clazz = module.getClassLoader().loadClass(name);
            classes.put(name, clazz);
            return clazz;
        } catch (NoClassDefFoundError e) {
            throw new ResourceLoadingException(e);
        } catch (ClassNotFoundException e) {
            throw new ResourceLoadingException(e);
        } catch (LinkageError e) {
            throw new ResourceLoadingException(e);
        }
    }
View Full Code Here

    @Override
    public URL getResource(String name) {
        try {
            return module.getClassLoader().getResource(name);
        } catch (Exception e) {
            throw new ResourceLoadingException(e);
        }
    }
View Full Code Here

TOP

Related Classes of org.jboss.weld.resources.spi.ResourceLoadingException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.