Package org.apache.tuscany.core.context

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


        }
        if (contexts == null) {
            contexts = new ConcurrentHashMap<String, Context> ();
            for (ContextFactory<Context> config : contextFactories.values()) {
                for (int i = 0; i < contextFactories.size(); i++) {
                    Context context = config.createContext();
                    context.start();
                    contexts.put(context.getName(), context);
                }

            }
        }
    }
View Full Code Here


        QualifiedName qName = new QualifiedName(qualifiedName);
        ScopeContext scope = scopeIndex.get(qName.getPartName());
        if (scope == null) {
            throw new ServiceNotFoundException(qualifiedName);
        }
        Context ctx = scope.getContext(qName.getPartName());
        try {
            Object o = ctx.getInstance(qName);
            if (o == null) {
                throw new ServiceNotFoundException(qualifiedName);
            }
            return o;
        } catch (TargetException e) {
View Full Code Here

TOP

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

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.