Package org.jboss.forge.furnace.exception

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


               javaSourcePlugin.setConfiguration(dom);
            }
            catch (Exception e)
            {
               throw new ContainerException(e);
            }
         }

         build.addPlugin(javaSourcePlugin);
         pom.setBuild(build);
View Full Code Here


      {
         return type.newInstance();
      }
      catch (Exception e)
      {
         throw new ContainerException("Could not create instance of [" + type.getName() + "] through reflection.", e);
      }
   }
View Full Code Here

                        result = new AddonLifecycleProviderEntry(addon, provider);
                     }

                     if (result != null && iterator.hasNext())
                     {
                        throw new ContainerException("Expected only one [" + AddonLifecycleProvider.class.getName()
                                 + "] but found multiple. Remove all but one redundant container implementations: " +
                                 Iterators.asList(serviceLoader));
                     }
                  }
               }
               return result;
            }
         });
      }
      catch (RuntimeException e)
      {
         throw e;
      }
      catch (Exception e)
      {
         throw new ContainerException("Error occurred while attempting to local instance of ["
                  + AddonLifecycleProvider.class.getName() + "] for addon [" + addon + "].");
      }

      return result;
   }
View Full Code Here

                     result = new AddonLifecycleProviderEntry(dependency, provider);
                  }

                  if (result != null && iterator.hasNext())
                  {
                     throw new ContainerException(
                              "Expected only one ["
                                       + AddonLifecycleProvider.class.getName()
                                       + "] but found multiple. Remove all but one redundant container implementations: "
                                       +
                                       Iterators.asList(serviceLoader));
                  }
               }
            }

            if (result != null)
               results.add(result);
         }
         catch (Throwable e)
         {
            // FIXME Figure out why ServiceLoader is trying to load things from the wrong ClassLoader
            logger.log(Level.FINEST, "ServiceLoader misbehaved when loading AddonLifecycleProvider instances.", e);
         }
      }

      if (results.size() > 1)
      {
         throw new ContainerException("Expected only one [" + AddonLifecycleProvider.class.getName()
                  + "] but found multiple. Remove all but one redundant container implementations: " +
                  results);
      }

      return results.isEmpty() ? null : results.get(0);
View Full Code Here

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

               }
            });
         }
         catch (Exception e)
         {
            throw new ContainerException("Could not get service of type [" + clazz + "] from addon [" + addon
                     + "]", e);
         }

      }
      return result;
View Full Code Here

                     }
                  }));
               }
               catch (Exception e)
               {
                  throw new ContainerException("Could not get services of type [" + clazz + "] from addon ["
                           + addon
                           + "]", e);
               }

            }
View Full Code Here

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

      AddonRegistry registry = BeanManagerUtils.getContextualInstance(manager, AddonRegistry.class);
View Full Code Here

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

      {
         return ClassLoaders.executeIn(addon.getClassLoader(), task);
      }
      catch (Exception e)
      {
         throw new ContainerException("Failed to get instance of [" + actualType + "] from addon [" + addon + "]", 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.