Package org.jboss.forge.furnace.exception

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


         });
      }
      catch (Exception e)
      {
         throw new ContainerException("Failed to create proxy for type [" + delegateType + "]", e);
      }
   }
View Full Code Here


         T instance = exported.get();
         instanceMap.put(instance, exported);
         return instance;
      }
      else
         throw new ContainerException("No @" + Exported.class.getSimpleName()
                  + " services of type [" + typeName + "] could be found in any started addons.");
   }
View Full Code Here

            T result = instance.get();
            instanceMap.put(result, instance);
            return result;
         }
      }
      throw new ContainerException("No @" + Exported.class.getSimpleName()
               + " services of type [" + type + "] could be found in any started addons.");
   }
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));
                     }
                  }
               }
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

            {
               Thread.sleep(10);
            }
            catch (InterruptedException e)
            {
               throw new ContainerException("Command [" + line + "] did not respond.", e);
            }
         }
         result = listener.getResult();
      }
      catch (IOException e)
View Full Code Here

            {
               Thread.sleep(10);
            }
            catch (InterruptedException e)
            {
               throw new ContainerException("Command [" + line + "] did not respond.", e);
            }
         }
         result = listener.getResult();
      }
      catch (IOException e)
View Full Code Here

            {
               Thread.sleep(10);
            }
            catch (InterruptedException e)
            {
               throw new ContainerException("Command [" + line + "] did not respond.", e);
            }
         }
         result = listener.getResult();
      }
      catch (IOException e)
View Full Code Here

               {
                  Thread.sleep(10);
               }
               catch (InterruptedException e)
               {
                  throw new ContainerException("Command [" + line + "] did not respond.", e);
               }
            }
            result = listener.getResult();
         }
         catch (IOException e)
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

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.