Package javax.enterprise.inject

Examples of javax.enterprise.inject.ResolutionException


    throws ResolutionException
    {
        Set<Bean<?>> beans = getBeanManager().getBeans(type, qualifiers);
        if (beans == null || beans.isEmpty())
        {
            throw new ResolutionException("cannot find beans for class " + type.getCanonicalName());
        }

        if (beans.size() > 1)
        {
            throw new AmbiguousResolutionException("cannot find beans for class " + type.getCanonicalName());
View Full Code Here


        ViolationMessageBuilder violationMessage =
                newViolation("Cannot find beans for class ", type.getCanonicalName());

        violationMessage.addLine(createQualifierMessage(qualifiers));

        throw new ResolutionException(violationMessage.toString());
    }
View Full Code Here

TOP

Related Classes of javax.enterprise.inject.ResolutionException

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.