Package org.apache.tuscany.core.context

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


    public void start() throws ScopeInitializationException {
        for (ContextFactory<Context> configuration : configs) {
            Context context = configuration.createContext();
            if (!(context instanceof CompositeContext)) {
                ScopeInitializationException e = new ScopeInitializationException("Context not an composite type");
                e.addContextName(context.getName());
                throw e;
            }
            CompositeContext compositeCtx = (CompositeContext) context;
            compositeCtx.start();
            contexts.put(compositeCtx.getName(), compositeCtx);
View Full Code Here


        assert (configuration != null) : "Configuration was null";
        configs.add(configuration);
        if (getLifecycleState() == RUNNING) {
            Context context = configuration.createContext();
            if (!(context instanceof CompositeContext)) {
                ScopeInitializationException e = new ScopeInitializationException("Context not an composite type");
                e.setIdentifier(context.getName());
                throw e;
            }
            CompositeContext compositeCtx = (CompositeContext) context;
            compositeCtx.start();
            if (moduleScopeStarted) {
View Full Code Here

TOP

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

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.