Package org.picocontainer

Examples of org.picocontainer.PicoIntrospectionException


        if (collectionType != null) {
            final Class valueType = getValueType(expectedType);
            final Collection componentAdapters = getMatchingComponentAdapters(container, adapter, componentKeyType, valueType).values();
            if (componentAdapters.isEmpty()) {
                if (!emptyCollection) {
                    throw new PicoIntrospectionException(expectedType.getName()
                            + " not resolvable, no components of type "
                            + getValueType(expectedType).getName()
                            + " available");
                }
            } else {
                for (final Iterator iter = componentAdapters.iterator(); iter.hasNext();) {
                    final ComponentAdapter componentAdapter = (ComponentAdapter) iter.next();
                    componentAdapter.verify(container);
                }
            }
        } else {
            throw new PicoIntrospectionException(expectedType.getName() + " is not a collective type");
        }
        return;
    }
View Full Code Here


    public Class getActionClass(String className) throws PicoIntrospectionException {
        try {
            return loadClass(className);
        } catch (ClassNotFoundException e) {
            throw new PicoIntrospectionException("Action class '" + className + "' not found", e);
        }
    }
View Full Code Here

        org.jacorb.orb.ORB jorb =
            (org.jacorb.orb.ORB) container.getComponentInstance(ORB.class);
       
        if (jorb == null)
        {
            throw new PicoIntrospectionException("Need JacORB ORB");
        }
    }
View Full Code Here

        org.jacorb.orb.ORB jorb =
            (org.jacorb.orb.ORB) container.getComponentInstance(ORB.class);
       
        if (jorb == null)
        {
            throw new PicoIntrospectionException("Need JacORB ORB");
        }
    }
View Full Code Here

TOP

Related Classes of org.picocontainer.PicoIntrospectionException

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.