Examples of PicoCompositionException


Examples of org.picocontainer.PicoCompositionException

  public T getComponentInstance(final PicoContainer container, final Type into)
      throws PicoCompositionException {
    try {
      return (T) factoryMethod.invoke(targetInstance);
    } catch (RuntimeException e) {
      throw new PicoCompositionException(
          "Error invoking delegate for object construction", e);
    }
  }
View Full Code Here

Examples of org.picocontainer.PicoCompositionException

    try {
      return new JNDIExposed<T>(super.addComponentAdapter(
          componentMonitor, lifecycleStrategy, componentProperties,
          adapter));
    } catch (NamingException e) {
      throw new PicoCompositionException(
          "unable to create JNDI behaviour", e);
    }
  }
View Full Code Here

Examples of org.picocontainer.PicoCompositionException

        componentKey, componentImplementation, parameters);

    try {
      return new JNDIExposed<T>(componentAdapter);
    } catch (NamingException e) {
      throw new PicoCompositionException(
          "unable to create JNDI behaviour", e);
    }
  }
View Full Code Here

Examples of org.picocontainer.PicoCompositionException

                    componentMonitor.invoked(container,
                                             PropertyApplicator.this,
                                             setter, componentInstance, System.currentTimeMillis() - startTime);
                } catch (final Exception e) {
                    componentMonitor.invocationFailed(setter, componentInstance, e);
                    throw new PicoCompositionException("Failed to set property " + propertyName + " to " + propertyValue + ": " + e.getMessage(), e);
                }
            }
        }
        return componentInstance;
    }
View Full Code Here

Examples of org.picocontainer.PicoCompositionException

            return new File(value);
        } else if (typeName.equals(URL.class.getName()) || typeName.equals("url")) {
            try {
                return new URL(value);
            } catch (MalformedURLException e) {
                throw new PicoCompositionException(e);
            }
        } else if (typeName.equals(Class.class.getName()) || typeName.equals("class")) {
            return loadClass(classLoader, value);
        } else {
            final Class<?> clazz = loadClass(classLoader, typeName);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.