Examples of LifecycleListener


Examples of com.badlogic.gdx.LifecycleListener

      }
    }

    managers.put(Gdx.app, manager);
    final Application app = Gdx.app;
    Gdx.app.addLifecycleListener(new LifecycleListener() {

      @Override
      public void resume () {
      }
View Full Code Here

Examples of com.google.collide.client.document.DocumentManager.LifecycleListener

    view.append(shell);
    view.append(header);

    workspacePlace.fireEvent(new NavigationAreaExpansionEvent(false));

    documentManager.getLifecycleListenerRegistrar().add(new LifecycleListener() {
     
      @Override
      public void onDocumentUnlinkingFromFile(Document document) {
        X_Log.info("unlinked from file",document);
      }
View Full Code Here

Examples of com.google.gerrit.extensions.events.LifecycleListener

    final Logger root = LogManager.getRootLogger();
    root.removeAllAppenders();
    root.addAppender(dst);

    return new LifecycleListener() {
      @Override
      public void start() {
      }

      @Override
View Full Code Here

Examples of com.hazelcast.core.LifecycleListener

            Thread.sleep(300);
            assertNotNull(partitions);
            assertEquals(instance2.getPartitionService().getPartitions().size(), partitions.values().iterator().next(), 0.);

            final CountDownLatch instance1Stopped = new CountDownLatch(1);
            instance1.getLifecycleService().addLifecycleListener(new LifecycleListener() {
                @Override
                public void stateChanged(final LifecycleEvent event) {
                    if (LifecycleEvent.LifecycleState.SHUTDOWN.equals(event.getState())) {
                        instance1Stopped.countDown();
                    }
View Full Code Here

Examples of com.netflix.governator.lifecycle.LifecycleListener

    @Test(dataProvider = "builders")
    public void     testAutoBindSingletonVsSingleton(LifecycleInjectorBuilder lifecycleInjectorBuilder) throws Exception
    {
        final List<Object>        objects = Lists.newArrayList();
        final LifecycleListener   listener = new DefaultLifecycleListener()
        {
            @Override
            public <T> void objectInjected(TypeLiteral<T> type, T obj)
            {
                objects.add(obj);
View Full Code Here

Examples of com.sun.appserv.server.LifecycleListener

                   
                for (String propName : props.stringPropertyNames()) {
                    slcm.setProperty(propName, props.getProperty(propName));
                }

                LifecycleListener listener = slcm.loadServerLifecycle();
                listenerSet.add(slcm);
            }
        }
        sortModules(listenerSet);
View Full Code Here

Examples of org.apache.catalina.LifecycleListener

                    digester.reset();
                }
            }
            if (context instanceof Lifecycle) {
                Class clazz = Class.forName(host.getConfigClass());
                LifecycleListener listener =
                    (LifecycleListener) clazz.newInstance();
                ((Lifecycle) context).addLifecycleListener(listener);
            }
            context.setConfigFile(contextXml.getAbsolutePath());
            context.setPath(contextPath);
View Full Code Here

Examples of org.apache.catalina.LifecycleListener

                (xml.getAbsolutePath(), new Long(xml.lastModified()));
            }

            if (context instanceof Lifecycle) {
                Class clazz = Class.forName(host.getConfigClass());
                LifecycleListener listener =
                    (LifecycleListener) clazz.newInstance();
                ((Lifecycle) context).addLifecycleListener(listener);
            }
            context.setPath(contextPath);
            context.setDocBase(file);
View Full Code Here

Examples of org.apache.catalina.LifecycleListener

                context = (Context) Class.forName(contextClass).newInstance();
            }

            if (context instanceof Lifecycle) {
                Class clazz = Class.forName(host.getConfigClass());
                LifecycleListener listener =
                    (LifecycleListener) clazz.newInstance();
                ((Lifecycle) context).addLifecycleListener(listener);
            }
            context.setPath(contextPath);
            context.setDocBase(file);
View Full Code Here

Examples of org.apache.catalina.LifecycleListener

              (Context) clazz.newInstance();
            context.setPath(contextPath);
            context.setDocBase(app.toString());
            if (context instanceof Lifecycle) {
                clazz = Class.forName(configClass);
                LifecycleListener listener =
                  (LifecycleListener) clazz.newInstance();
                ((Lifecycle) context).addLifecycleListener(listener);
            }
            host.addChild(context);
        } catch (Exception e) {
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.