Examples of LifecycleListener


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

    }

    private void fireRunningEvent(ObjectName source) {
        Set targets = getTargets(source);
        for (Iterator iterator = targets.iterator(); iterator.hasNext();) {
            LifecycleListener listener = (LifecycleListener) iterator.next();
            try {
                listener.running(source);
            } catch (Throwable e) {
                log.warn("Exception occured while notifying listener", e);
            }
        }
    }
View Full Code Here

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

    }

    private void fireStoppingEvent(ObjectName source) {
        Set targets = getTargets(source);
        for (Iterator iterator = targets.iterator(); iterator.hasNext();) {
            LifecycleListener listener = (LifecycleListener) iterator.next();
            try {
                listener.stopping(source);
            } catch (Throwable e) {
                log.warn("Exception occured while notifying listener", e);
            }
        }
    }
View Full Code Here

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

    }

    private void fireStoppedEvent(ObjectName source) {
        Set targets = getTargets(source);
        for (Iterator iterator = targets.iterator(); iterator.hasNext();) {
            LifecycleListener listener = (LifecycleListener) iterator.next();
            try {
                listener.stopped(source);
            } catch (Throwable e) {
                log.warn("Exception occured while notifying listener", e);
            }
        }
    }
View Full Code Here

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

    }

    private void fireFailedEvent(ObjectName source) {
        Set targets = getTargets(source);
        for (Iterator iterator = targets.iterator(); iterator.hasNext();) {
            LifecycleListener listener = (LifecycleListener) iterator.next();
            try {
                listener.failed(source);
            } catch (Throwable e) {
                log.warn("Exception occured while notifying listener", e);
            }
        }
    }
View Full Code Here

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

    }

    private void fireUnloadedEvent(ObjectName source) {
        Set targets = getTargets(source);
        for (Iterator iterator = targets.iterator(); iterator.hasNext();) {
            LifecycleListener listener = (LifecycleListener) iterator.next();
            try {
                listener.unloaded(source);
            } catch (Throwable e) {
                log.warn("Exception occured while notifying listener", e);
            }
        }
    }
View Full Code Here

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

            Map.Entry entry = (Map.Entry) listenerIterator.next();
            Set patterns = (Set) entry.getValue();
            for (Iterator patternIterator = patterns.iterator(); patternIterator.hasNext();) {
                AbstractNameQuery pattern = (AbstractNameQuery) patternIterator.next();
                if (pattern.matches(source, interfaceTypes)) {
                    LifecycleListener listener = (LifecycleListener) entry.getKey();
                    listeners.add(listener);
                }
            }
        }
View Full Code Here

Examples of org.apache.geronimo.messaging.remotenode.RemoteNodeConnection.LifecycleListener

            return;
        }
        connection = aConnection;
        connection.open();
        connection.setMsgProducerOut(producerOut);
        connection.setLifecycleListener(new LifecycleListener() {
            public void onClose() {
                manager.unregisterRemoteNode(AbstractRemoteNode.this);
            }
        });
    }
View Full Code Here

Examples of org.apache.shale.view.faces.LifecycleListener

    protected void setUp() throws Exception {

        super.setUp();
        listener = new ApplicationAttributeListener();
        servletContext.addAttributeListener(listener);
        servletContext.addAttributeListener(new LifecycleListener());

    }
View Full Code Here

Examples of org.browsermob.proxy.jetty.util.LifeCycleListener

        defineAttribute("displayName",false);
        defineAttribute("defaultsDescriptor",true);
        defineAttribute("WAR",true);
        defineAttribute("extractWAR",true);
        _webappContext=(WebApplicationContext)getManagedResource();
        _webappContext.addEventListener(new LifeCycleListener()
                {

                    public void lifeCycleStarting (LifeCycleEvent event)
                    {}
                   
View Full Code Here

Examples of org.eclipse.jst.jsf.common.internal.resource.LifecycleListener

    private DesignTimeApplicationManager(final IProject project)
    {
        _project = project;
        _locator = new MyExternalContextFactoryLocator();
        _isDisposed = new AtomicBoolean();
        _lifecycleListener = new LifecycleListener(_project, ResourcesPlugin.getWorkspace());
        _lifecycleListener.addListener(new IResourceLifecycleListener()
        {
            public EventResult acceptEvent(final ResourceLifecycleEvent event)
            {
                if (event.getAffectedResource() == _project)
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.