Package org.jboss.forge.furnace.exception

Examples of org.jboss.forge.furnace.exception.ContainerException


      {
         throw e;
      }
      catch (Exception e)
      {
         throw new ContainerException(e);
      }
      finally
      {
         lock.unlock();
      }
View Full Code Here


               }
            }
         }
         catch (Exception e)
         {
            throw new ContainerException("Problems encountered during propagation of event [" + event
                     + "] with qualifiers [" + qualifiers + "]", e);
         }
      }
      else
      {
View Full Code Here

                                       .getPosition()];
                           }
                        }
                        else
                        {
                           throw new ContainerException(
                                    "Cannot handle producer for non-Field and non-Method member type: " + member);
                        }

                        return ExportedInstanceLazyLoader.create(
                                 BeanManagerUtils.getContextualInstance(manager, AddonRegistry.class),
View Full Code Here

      {
         return (R) ClassLoaders.executeIn(loader, task);
      }
      catch (Exception e)
      {
         throw new ContainerException("Failed to enhance instance of [" + actualType + "] with proxy for ClassLoader ["
                  + loader + "]", e);
      }
   }
View Full Code Here

      {
         return ClassLoaders.executeIn(loader, task);
      }
      catch (Exception e)
      {
         throw new ContainerException("Failed to enhance instance of [" + actualType + "] with proxy for ClassLoader ["
                  + loader + "]");
      }
   }
View Full Code Here

         method.setAccessible(true);
         method.invoke(null);
      }
      catch (Exception e)
      {
         throw new ContainerException("Could not install Modules MBean server", e);
      }
   }
View Full Code Here

                        );
            }
         }
         catch (IOException e)
         {
            throw new ContainerException("Could not load resources from [" + file.getAbsolutePath() + "]", e);
         }
      }
   }
View Full Code Here

      {
         ModuleIdentifier moduleId = findCompatibleInstalledModule(dependency.getId());

         if (moduleId == null && !dependency.isOptional())
         {
            throw new ContainerException("Dependency [" + dependency + "] could not be loaded for addon [" + found
                     + "]");
         }
         else
         {
            builder.addDependency(DependencySpec.createModuleDependencySpec(
View Full Code Here

      public T get()
      {
         T instance = store.get(findParentModuleCl(getClassLoader()));
         if (instance == null)
         {
            throw new ContainerException("Singleton is not set in ClassLoader [" + getClassLoader() + "]");
         }
         return instance;
      }
View Full Code Here

         Class<Enum> callingType = (Class<Enum>) loader.loadClass(instance.getClass().getName());
         return Enum.valueOf(callingType, ((Enum) instance).name());
      }
      catch (ClassNotFoundException e)
      {
         throw new ContainerException(
                  "Could not enhance instance [" + instance + "] of type [" + instance.getClass() + "]", e);
      }
   }
View Full Code Here

TOP

Related Classes of org.jboss.forge.furnace.exception.ContainerException

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.