Package org.apache.tuscany.core.context

Examples of org.apache.tuscany.core.context.AutowireResolutionException


        NameToScope nts = autowireInternal.get(instanceInterface);
        if (nts != null) {
            try {
                return instanceInterface.cast(nts.getScopeContext().getInstance(nts.getName()));
            } catch (TargetException e) {
                AutowireResolutionException ae = new AutowireResolutionException("Autowire instance not found", e);
                ae.addContextName(getName());
                throw ae;
            }
        } else if (autowireContext != null) {
            try {
                // resolve to parent
View Full Code Here


        NameToScope nts = autowireExternal.get(instanceInterface);
        if (nts != null) {
            try {
                return instanceInterface.cast(nts.getScopeContext().getInstance(nts.getName()));
            } catch (TargetException e) {
                AutowireResolutionException ae = new AutowireResolutionException("Autowire instance not found", e);
                ae.addContextName(getName());
                throw ae;
            }
        } else {
            return null;
        }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.core.context.AutowireResolutionException

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.