Examples of addListener()


Examples of org.elasticsearch.watcher.FileWatcher.addListener()

        scriptsDirectory = new File(env.configFile(), "scripts");
        if (logger.isTraceEnabled()) {
            logger.trace("Using scripts directory [{}] ", scriptsDirectory);
        }
        FileWatcher fileWatcher = new FileWatcher(scriptsDirectory);
        fileWatcher.addListener(new ScriptChangesListener());

        if (componentSettings.getAsBoolean("auto_reload_enabled", true)) {
            // automatic reload is enabled - register scripts
            resourceWatcherService.add(fileWatcher);
        } else {
View Full Code Here

Examples of org.ethereum.core.Wallet.addListener()

        Container contentPane = this.getContentPane();
        contentPane.setBackground(new Color(255, 255, 255));

        Wallet wallet = UIEthereumManager.ethereum.getWallet();
        wallet.addListener(this);
        loadWallet();

    }

    private void loadWallet() {
View Full Code Here

Examples of org.exoplatform.services.jcr.ext.backup.BackupChain.addListener()

      BackupChain bchain =
         new BackupChainImpl(config, logsDirectory, repoService, fullBackupType, incrementalBackupType, IdGenerator
            .generate(), logsDirectory, startTime);

      bchain.addListener(messagesListener);
      bchain.addListener(jobListener);

      currentBackups.add(bchain);
      bchain.startBackup();
View Full Code Here

Examples of org.exoplatform.services.listener.ListenerService.addListener()

        // add our Session event listener to the ListenerService for use in org.exoplatform.web.GenericHttpListener
        ListenerService listenerService = (ListenerService) container.getComponentInstanceOfType(ListenerService.class);
        SessionEventListenerAndBroadcaster sessionEventBroadcaster = new SessionEventListenerAndBroadcaster();

        // events from org.exoplatform.web.GenericHttpListener
        listenerService.addListener("org.exoplatform.web.GenericHttpListener.sessionCreated", sessionEventBroadcaster);
        listenerService.addListener("org.exoplatform.web.GenericHttpListener.sessionDestroyed", sessionEventBroadcaster);

        try {
            JCRPersister persister = new JCRPersister(container, JCRPersister.WSRP_WORKSPACE_NAME);
            persister.initializeBuilderFor(JCRConsumerRegistry.mappingClasses);
View Full Code Here

Examples of org.fenrir.yggdrasil.core.service.IEventNotificationService.addListener()

        applicationContext.getPluginRegistry().addModuleDefinition(moduleDefinition);
        applicationContext.configureContext(CoreConstants.EXECUTION_CONTEXT_STARTUP);
       
        // S'especifica directament com a listener perquè la classe Application no està gestionada per Guice
        IEventNotificationService eventNotificationService = (IEventNotificationService)applicationContext.getRegisteredComponent(IEventNotificationService.class);
        eventNotificationService.addListener(IWorkspaceEventListener.class, this);
       
        initialized = true;
    }

    public final void run() throws ApplicationException
View Full Code Here

Examples of org.gatein.pc.portlet.impl.metadata.PortletApplication10MetaData.addListener()

         // add listener
         else if (child instanceof ListenerMetaData)
         {
            ListenerMetaData listener = (ListenerMetaData)child;
            listener.setDisplayName(this.displayNames.getLocalizedString(listener));
            md.addListener(listener);
         }
      }

      // portlet
      if (parent instanceof PortletMetaData)
View Full Code Here

Examples of org.gatein.pc.portlet.impl.metadata.PortletApplication20MetaData.addListener()

         // add listener
         else if (child instanceof ListenerMetaData)
         {
            ListenerMetaData listener = (ListenerMetaData)child;
            listener.setDisplayName(this.displayNames.getLocalizedString(listener));
            md.addListener(listener);
         }
      }

      // portlet
      if (parent instanceof PortletMetaData)
View Full Code Here

Examples of org.gatein.pc.portlet.impl.metadata.common.DescribableMetaData.addListener()

         // add listener
         else if (child instanceof ListenerMetaData)
         {
            ListenerMetaData listener = (ListenerMetaData)child;
            listener.setDisplayName(this.displayNames.getLocalizedString(listener));
            md.addListener(listener);
         }
      }

      // portlet
      if (parent instanceof PortletMetaData)
View Full Code Here

Examples of org.geomajas.gwt.client.widget.MapWidget.addListener()

            + screenPosition + "<br/>"
            + I18nProvider.getSampleMessages().customControllerWorldCoordinates() + " = (" + x + ", " + y
            + ")");
      }
    }
    map.addListener(new MouseMoveListener());

    layout.addMember(mapLayout);
    layout.addMember(labelLayout);

    return layout;
View Full Code Here

Examples of org.geoserver.catalog.Catalog.addListener()

        }
       
        //load listeners
        List<CatalogListener> catalogListeners = GeoServerExtensions.extensions( CatalogListener.class );
        for ( CatalogListener l : catalogListeners ) {
            catalog.addListener( l );
        }
        List<ConfigurationListener> configListeners = GeoServerExtensions.extensions( ConfigurationListener.class );
        for ( ConfigurationListener l : configListeners ) {
            geoserver.addListener( l );
        }
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.