Package org.servicemix.jbi.container

Examples of org.servicemix.jbi.container.ComponentEnvironment


    }

    protected ComponentContextImpl buildComponentContext(String name) throws IOException {
        ComponentNameSpace cns = new ComponentNameSpace(container.getName(), name, name);
        ComponentContextImpl context = new ComponentContextImpl(container, cns);
        ComponentEnvironment env  = new ComponentEnvironment();
    File componentRoot = environmentContext.getComponentRootDirectory(name);
    FileUtil.buildDirectory(componentRoot);
    File privateWorkspace = environmentContext.createWorkspaceDirectory(name);
    env.setWorkspaceRoot(privateWorkspace);
    env.setComponentRoot(componentRoot);
    context.setEnvironment(env);
        return context;
    }
View Full Code Here

TOP

Related Classes of org.servicemix.jbi.container.ComponentEnvironment

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.