Package org.hudsonci.inject

Examples of org.hudsonci.inject.SmoothieContainer


        // Build the root space for the given types
        ClassSpace space = new ClassSpaceFactory().create(classLoader, types);

        // Start up the container
        SmoothieContainer container = new SmoothieContainerImpl(new ExtensionModule(space, true));
        Smoothie.setContainer(container);

        // Enable aspect-based injection
        InjectomaticAspectHelper.setEnabled(true);
View Full Code Here


        }
    }

    @Test
    public void testInjectoAwareWithExtends() {
        SmoothieContainer container = Smoothie.getContainer();
        assertNotNull(container);

        Injectomatic injecto = container.get(Key.get(Injectomatic.class));
        assertNotNull(injecto);
        System.out.println(injecto);

        TestInjectomaticAware aware = container.get(Key.get(TestInjectomaticAware2.class));
        assertNotNull(aware.injecto);
        assertEquals(injecto, aware.injecto);
    }
View Full Code Here

TOP

Related Classes of org.hudsonci.inject.SmoothieContainer

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.