Examples of addListener()


Examples of org.jboss.msc.service.ServiceBuilder.addListener()

            builder.addDependency(SecurityRealmService.BASE_SERVICE_NAME.append(securityRealm), SecurityRealmService.class, service.getSecurityRealmInjector());
        } else {
            Logger.getLogger("org.jboss.as").warn("No security realm defined for http management service, all access will be unrestricted.");
        }
        if (verificationHandler != null) {
            builder.addListener(verificationHandler);
        }

        builder.setInitialMode(ServiceController.Mode.ACTIVE)
                .install();
View Full Code Here

Examples of org.jboss.msc.service.ServiceController.addListener()

            ServiceController raServiceController = registry.getService(raDeploymentServiceName);

            if (raServiceController != null) {
                final org.jboss.msc.service.ServiceController.Mode originalMode = raServiceController.getMode();
                if (svh != null) {
                    raServiceController.addListener(svh);
                }
                raServiceController.addListener(new AbstractServiceListener() {
                    @Override
                    public void transition(ServiceController controller, ServiceController.Transition transition) {
                        switch (transition) {
View Full Code Here

Examples of org.jboss.msc.service.ServiceTarget.addListener()

        } else {
            this.startTime = -1;
        }

        final BootstrapListener bootstrapListener = new BootstrapListener(serviceContainer, startTime, serviceTarget, futureContainer,  prettyVersion + " (Host Controller)");
        serviceTarget.addListener(ServiceListener.Inheritance.ALL, bootstrapListener);
        myController.addListener(bootstrapListener);

        // The first default services are registered before the bootstrap operations are executed.

        // Install the process controller client
View Full Code Here

Examples of org.jboss.netty.channel.ChannelFuture.addListener()

      throw new UnsupportedOperationException();
    }

    public Future<?> write(Object msg) {
      final ChannelFuture future = channel.write(msg);
      future.addListener(completionListener);
      return new Future<Void>() {

        @Override
        public boolean cancel(boolean arg0) {
          return future.cancel();
View Full Code Here

Examples of org.jboss.netty.channel.group.ChannelGroupFuture.addListener()

                } catch (Exception ex) {
                    ex.printStackTrace();
                }
            }
            ChannelGroupFuture future = channels.write(buffer);
            future.addListener(new ChannelGroupFutureListener() {
                @Override
                public void operationComplete(ChannelGroupFuture future) throws Exception {
                    master.sentBytes(reportBytes * peerCount);
                    state.returnSendBuffer(buffer);
                    if (watcher != null) {
View Full Code Here

Examples of org.jboss.netty.channel.group.DefaultChannelGroupFuture.addListener()

            List<ChannelFuture> futures = new ArrayList<>(peerCount);
            for (Channel c : channels) {
                futures.add(c.write(buffer.duplicate()));
            }
            ChannelGroupFuture future = new DefaultChannelGroupFuture(DummyChannelGroup.DUMMY, futures);
            future.addListener(new ChannelGroupFutureListener() {
                @Override
                public void operationComplete(ChannelGroupFuture future) throws Exception {
                    master.sentBytes(reportBytes * peerCount);
                    ChannelState.returnSendBuffer(buffer);
                    if (watcher != null) {
View Full Code Here

Examples of org.jboss.remoting.Client.addListener()

         callbackHandler = new SimpleCallbackHandler();

         client.connect();

         client.addListener(callbackHandler, null, null, true);

         client.invoke(new OnewayCallbackTrigger("blop"));

         // make sure we get the callback
View Full Code Here

Examples of org.jbpm.tx.Transaction.addListener()

        AfterTxCompletionListener afterTxCompletionListener = new AfterTxCompletionListener(
                execution,
                exception,
                environment.getEnvironmentFactory()
        );
        transaction.addListener(afterTxCompletionListener, Transaction.EVENT_AFTERCOMPLETION);
        log.finest("registering exception handler to "+transaction);
        throw new PvmException("transaction exception handler registered handler after transaction completed.  make sure this transaction is rolled back", exception);
      } else {
        throw new PvmException("no transaction present in the environment for transactional exception handler", exception);
      }
View Full Code Here

Examples of org.jdesktop.wonderland.modules.appbase.client.ControlArb.addListener()

        // track changes in control state of this window
        App2D app = window.getApp();
        ControlArb arbiter = app.getControlArb();
        if (arbiter != null) {
            arbiter.addListener(this);
        }
    }

    /**
     * Creates a new HUD component instance for a Window2D, bound to
View Full Code Here

Examples of org.jitterbit.application.prefs.BooleanPreference.addListener()

            @Override
            public void valueChanged(Preference<Boolean> pref, Boolean oldValue, Boolean newValue) {
                repaint();
            }
        };
        pref.addListener(listener);
        return new Disposable() {

            @Override
            public void dispose() {
                pref.removeListener(listener);
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.