Package org.apache.tuscany.sca.scope

Examples of org.apache.tuscany.sca.scope.Scope


            return component.getScopeContainer();
        }
        ImplementationProvider implementationProvider = component.getImplementationProvider();
        if (implementationProvider instanceof ScopedImplementationProvider) {
            ScopedImplementationProvider provider = (ScopedImplementationProvider)implementationProvider;
            Scope scope = provider.getScope();
            if (scope == null) {
                scope = Scope.STATELESS;
            }
            ScopeContainerFactory factory = scopeCache.get(scope);
            ScopeContainer container = factory.createScopeContainer(component);
View Full Code Here


            // FIXME: Group id to be removed
            configuration.setGroupId(URI.create("/"));
            atomicComponent = new JavaComponentInfo(component, configuration, dataBindingRegistry,
                                                                      propertyValueObjectFactory);

            Scope scope = getScope();

            if (scope == Scope.SYSTEM || scope == Scope.COMPOSITE) {
                // Nothing
            } else {
                // Check for conversational contract if conversational scope
View Full Code Here

            throw new IllegalArgumentException(e);
        }
    }

    public Scope getScope() {
        return new Scope(implementation.getJavaScope().getScope());
    }
View Full Code Here

* @version $Rev: 537917 $ $Date: 2007-05-14 22:34:27 +0530 (Mon, 14 May 2007) $
*/
public class ScopeTestCase extends TestCase {

    public void testEquals() throws Exception {
        Scope scope = new Scope("COMPOSITE");
        assertTrue(scope.equals(Scope.COMPOSITE));
    }
View Full Code Here

        Scope scope = new Scope("COMPOSITE");
        assertTrue(scope.equals(Scope.COMPOSITE));
    }

    public void testEqualsNew() throws Exception {
        Scope foo = new Scope("foo");
        Scope foo2 = new Scope("FOO");
        assertTrue(foo.equals(foo2));
    }
View Full Code Here

        Scope foo2 = new Scope("FOO");
        assertTrue(foo.equals(foo2));
    }

    public void testNotEquals() throws Exception {
        Scope foo = new Scope("BAR");
        Scope foo2 = new Scope("FOO");
        assertFalse(foo.equals(foo2));
    }
View Full Code Here

        Scope foo2 = new Scope("FOO");
        assertFalse(foo.equals(foo2));
    }

    public void testNotEqualsDifferent() throws Exception {
        Scope foo = new Scope("FOO");
        assertFalse(foo.equals(new Bar("FOO")));
    }
View Full Code Here

            return component.getScopeContainer();
        }
        ImplementationProvider implementationProvider = component.getImplementationProvider();
        if (implementationProvider instanceof ScopedImplementationProvider) {
            ScopedImplementationProvider provider = (ScopedImplementationProvider)implementationProvider;
            Scope scope = provider.getScope();
            if (scope == null) {
                scope = Scope.STATELESS;
            }
            ScopeContainerFactory factory = scopeCache.get(scope);
            ScopeContainer container = factory.createScopeContainer(component);
View Full Code Here

* @version $Rev: 537917 $ $Date: 2007-05-14 18:04:27 +0100 (Mon, 14 May 2007) $
*/
public class ScopeTestCase extends TestCase {

    public void testEquals() throws Exception {
        Scope scope = new Scope("COMPOSITE");
        assertTrue(scope.equals(Scope.COMPOSITE));
    }
View Full Code Here

        Scope scope = new Scope("COMPOSITE");
        assertTrue(scope.equals(Scope.COMPOSITE));
    }

    public void testEqualsNew() throws Exception {
        Scope foo = new Scope("foo");
        Scope foo2 = new Scope("FOO");
        assertTrue(foo.equals(foo2));
    }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.scope.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.