Examples of ScopeRegistry


Examples of org.apache.tuscany.spi.component.ScopeRegistry

* @version $Rev: 441935 $ $Date: 2006-09-10 02:57:47 -0700 (Sun, 10 Sep 2006) $
*/
public class StatelessScopeObjectFactoryTestCase extends TestCase {

    public void testCreation() {
        ScopeRegistry registry = EasyMock.createMock(ScopeRegistry.class);
        registry.registerFactory(EasyMock.isA(Scope.class), EasyMock.isA(StatelessScopeObjectFactory.class));
        assertNotNull(new StatelessScopeObjectFactory(registry).getInstance());
    }
View Full Code Here

Examples of org.apache.tuscany.spi.component.ScopeRegistry

* @version $Rev: 441935 $ $Date: 2006-09-10 02:57:47 -0700 (Sun, 10 Sep 2006) $
*/
public class ModuleScopeObjectFactoryTestCase extends TestCase {

    public void testCreation() {
        ScopeRegistry registry = EasyMock.createMock(ScopeRegistry.class);
        registry.registerFactory(EasyMock.isA(Scope.class), EasyMock.isA(ModuleScopeObjectFactory.class));

        assertNotNull(new ModuleScopeObjectFactory(registry).getInstance());
    }
View Full Code Here

Examples of org.apache.tuscany.spi.component.ScopeRegistry

     * Create primordial deployer that can be used to load the system definition.
     *
     * @return the primordial deployer
     */
    public Deployer createDeployer() {
        ScopeRegistry scopeRegistry = createScopeRegistry(new WorkContextImpl());
        Builder builder = createBuilder(scopeRegistry);
        JavaInterfaceProcessorRegistry interfaceIntrospector = new JavaInterfaceProcessorRegistryImpl();
        Introspector introspector = createIntrospector(interfaceIntrospector);
        LoaderRegistry loader = createLoader(new PropertyObjectFactoryImpl(), introspector);
        return new DeployerImpl(xmlFactory, loader, builder);
View Full Code Here

Examples of org.apache.tuscany.spi.component.ScopeRegistry

     *
     * @param workContext the WorkContext the scopes should use
     * @return a new ScopeRegistry
     */
    public ScopeRegistry createScopeRegistry(WorkContext workContext) {
        ScopeRegistry scopeRegistry = new ScopeRegistryImpl(workContext);
        new ModuleScopeObjectFactory(scopeRegistry); // self-registers
        return scopeRegistry;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.