Examples of LifecycleAdapter


Examples of org.apache.geronimo.kernel.lifecycle.LifecycleAdapter

            log.warn("Exception occured while attempting to fully start: objectName=" + getGBeanInstance().getObjectName(), e);
        }
    }

    protected LifecycleListener createLifecycleListener() {
        return new LifecycleAdapter() {
                    public void running(ObjectName objectName) {
                        addTarget(objectName);
                    }

                    public void stopped(ObjectName objectName) {
View Full Code Here

Examples of org.apache.geronimo.kernel.lifecycle.LifecycleAdapter

            log.warn("Exception occured while attempting to fully start: objectName=" + getGBeanInstance().getObjectName(), e);
        }
    }

    protected LifecycleListener createLifecycleListener() {
        return new LifecycleAdapter() {
                    public void running(ObjectName objectName) {
                        addTarget(objectName);
                    }

                    public void stopped(ObjectName objectName) {
View Full Code Here

Examples of org.apache.geronimo.kernel.lifecycle.LifecycleAdapter

            }

            // check if an gbean is blocking us from starting
            final ObjectName blocker = dependencyManager.checkBlocker(objectName);
            if (blocker != null) {
                blockerListener = new LifecycleAdapter() {

                    public void stopped(ObjectName objectName) {
                        checkBlocker(objectName);
                    }
View Full Code Here

Examples of org.apache.geronimo.kernel.lifecycle.LifecycleAdapter

    public FileConfigurationList(Kernel kernel, ServerInfo serverInfo, ConfigurationManager configurationManager, String configDir) {
        this.kernel = kernel;
        this.configurationManager = configurationManager;
        this.serverInfo = serverInfo;
        this.configFile = configDir;
        this.listener = new LifecycleAdapter() {
            public void stopped(ObjectName objectName) {
                if(kernelFullyStarted && FileConfigurationList.this.kernel.isRunning()) {
                    doSave();
                }
            }
View Full Code Here

Examples of org.apache.geronimo.kernel.lifecycle.LifecycleAdapter

            log.warn("Exception occured while attempting to fully start: objectName=" + gbeanInstance.getObjectName(), e);
        }
    }

    protected LifecycleListener createLifecycleListener() {
        return new LifecycleAdapter() {
            public void running(AbstractName abstractName) {
                addTarget(abstractName);
            }

            public void stopped(AbstractName abstractName) {
View Full Code Here

Examples of org.apache.geronimo.kernel.lifecycle.LifecycleAdapter

            }

            // check if an gbean is blocking us from starting
            final ObjectName blocker = dependencyManager.checkBlocker(objectName);
            if (blocker != null) {
                blockerListener = new LifecycleAdapter() {

                    public void stopped(ObjectName objectName) {
                        checkBlocker(objectName);
                    }
View Full Code Here

Examples of org.apache.geronimo.kernel.lifecycle.LifecycleAdapter

    public FileConfigurationList(Kernel kernel, ServerInfo serverInfo, ConfigurationManager configurationManager, String configDir) {
        this.kernel = kernel;
        this.configurationManager = configurationManager;
        this.serverInfo = serverInfo;
        this.configFile = configDir;
        this.listener = new LifecycleAdapter() {
            public void stopped(ObjectName objectName) {
                if(kernelFullyStarted && FileConfigurationList.this.kernel.isRunning()) {
                    doSave();
                }
            }
View Full Code Here

Examples of org.mule.api.component.LifecycleAdapter

    }

    @Override
    protected LifecycleAdapter borrowComponentLifecycleAdaptor() throws Exception
    {
        LifecycleAdapter componentLifecycleAdapter;
        if (singletonComponentLifecycleAdapter != null)
        {
            componentLifecycleAdapter = singletonComponentLifecycleAdapter;
        }
        else
        {
            componentLifecycleAdapter = createLifecycleAdaptor();
            componentLifecycleAdapter.start();
        }
        return componentLifecycleAdapter;
    }
View Full Code Here

Examples of org.mule.api.component.LifecycleAdapter

    public void testCreateLifecycleAdapters() throws Exception
    {
        PooledJavaComponent component = createPooledComponent();
        assertEquals(0, component.lifecycleAdapterPool.getNumActive());

        LifecycleAdapter borrowed = component.borrowComponentLifecycleAdaptor();
        assertNotNull(borrowed);
        assertEquals(1, component.lifecycleAdapterPool.getNumActive());
       
        component.returnComponentLifecycleAdaptor(borrowed);
        assertEquals(0, component.lifecycleAdapterPool.getNumActive());
View Full Code Here

Examples of org.mule.api.component.LifecycleAdapter

        // borrow all but one lifecycle adapters
        int oneRemainingInPool = (MAX_ACTIVE - 1);
        for (int i = 0; i < oneRemainingInPool; i++)
        {
            LifecycleAdapter borrowed = component.borrowComponentLifecycleAdaptor();
            assertNotNull(borrowed);
            assertEquals(component.lifecycleAdapterPool.getNumActive(), i + 1);
        }
        assertEquals(oneRemainingInPool, component.lifecycleAdapterPool.getNumActive());
       
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.