Package org.apache.tuscany.spi.model

Examples of org.apache.tuscany.spi.model.Scope


       
        RubyScript rubyScript = implementation.getRubyScript();

        // TODO: have ComponentBuilderExtension pass ScopeContainer in on build method?
        ScopeContainer scopeContainer;
        Scope scope = componentType.getLifecycleScope();
        if (Scope.MODULE == scope) {
            scopeContainer = deploymentContext.getModuleScope();
        } else {
            scopeContainer = scopeRegistry.getScopeContainer(scope);
        }
View Full Code Here


        PojoComponentType<JavaMappedService, JavaMappedReference, JavaMappedProperty<?>> componentType =
            definition.getImplementation().getComponentType();

        PojoConfiguration configuration = new PojoConfiguration();
        configuration.setParent(parent);
        Scope scope = componentType.getImplementationScope();
        if (Scope.MODULE == scope) {
            configuration.setScopeContainer(deployment.getModuleScope());
        } else {
            configuration.setScopeContainer(scopeRegistry.getScopeContainer(scope));
        }
View Full Code Here

        RhinoScript rhinoScript = implementation.getRhinoScript();

        // TODO: have ComponentBuilderExtension pass ScopeContainer in on build method?
        ScopeContainer scopeContainer;
        Scope scope = componentType.getLifecycleScope();
        if (Scope.MODULE == scope) {
            scopeContainer = deploymentContext.getModuleScope();
        } else {
            scopeContainer = scopeRegistry.getScopeContainer(scope);
        }
View Full Code Here

            type.setImplementationScope(Scope.STATELESS);
            return;
        }
        //FIXME deal with eager init
        String name = annotation.value();
        Scope scope;
        if ("MODULE".equals(name)) {
            scope = Scope.MODULE;
        } else if ("SESSION".equals(name)) {
            scope = Scope.SESSION;
        } else if ("REQUEST".equals(name)) {
            scope = Scope.REQUEST;
        } else if ("COMPOSITE".equals(name)) {
            scope = Scope.COMPOSITE;
        } else {
            scope = new Scope(name);
        }
        type.setImplementationScope(scope);
    }
View Full Code Here

        GroovyConfiguration configuration = new GroovyConfiguration();
        configuration.setName(name);
        configuration.setGroovyClass(groovyClass);
        configuration.setParent(parent);
        // get the scope container for this component's scope
        Scope scope = componentType.getLifecycleScope();
        if (Scope.MODULE == scope) {
            configuration.setScopeContainer(deploymentContext.getModuleScope());
        } else {
            configuration.setScopeContainer(scopeRegistry.getScopeContainer(scope));
        }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.spi.model.Scope

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.