Package org.apache.geronimo.gbean

Examples of org.apache.geronimo.gbean.GBeanLifecycleController


        // the normal classLoader attribute has been changed in the MockGBean implementation to
        // return ClassLoader.getSystemClassLoader()
        assertSame(ClassLoader.getSystemClassLoader(), kernel.getAttribute(name, "classLoader"));

        GBeanLifecycleController gbeanLifecycleController = (GBeanLifecycleController) kernel.getAttribute(name, "gbeanLifecycleController");
        assertNotNull(gbeanLifecycleController);
        assertEquals(State.RUNNING_INDEX, gbeanLifecycleController.getState());

        assertNotSame(kernel, kernel.getAttribute(name, "kernel"));
        assertSame(kernel, kernel.getAttribute(name, "actualKernel"));

        kernel.stopGBean(name);
View Full Code Here


        // the normal classLoader attribute has been changed in the MockGBean implementation to
        // return ClassLoader.getSystemClassLoader()
        assertSame(ClassLoader.getSystemClassLoader(), kernel.getAttribute(name, "classLoader"));

        GBeanLifecycleController gbeanLifecycleController = (GBeanLifecycleController) kernel.getAttribute(name, "gbeanLifecycleController");
        assertNotNull(gbeanLifecycleController);
        assertEquals(State.RUNNING_INDEX, gbeanLifecycleController.getState());

        assertNotSame(kernel, kernel.getAttribute(name, "kernel"));
        assertSame(kernel, kernel.getAttribute(name, "actualKernel"));

        kernel.stopGBean(name);
View Full Code Here

        // the MockGBean implemmentation of getConfigurationClassLoader will throw an exception, but since the GBean architecture
        // handles this directly the implementation method will never be called
        kernel.getAttribute(name, "classLoader");

        GBeanLifecycleController gbeanLifecycleController = (GBeanLifecycleController) kernel.getAttribute(name, "gbeanLifecycleController");
        assertNotNull(gbeanLifecycleController);
        assertEquals(State.RUNNING_INDEX, gbeanLifecycleController.getState());

        assertSame(kernel, kernel.getAttribute(name, "kernel"));
        assertSame(kernel, kernel.getAttribute(name, "actualKernel"));

        kernel.stopGBean(name);
View Full Code Here

TOP

Related Classes of org.apache.geronimo.gbean.GBeanLifecycleController

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.