Examples of addListener()


Examples of com.mysema.query.sql.dml.SQLMergeClause.addListener()

        return sqlDeleteClause;
    }

    protected SQLMergeClause merge(RelationalPath<?> e) {
        SQLMergeClause sqlMergeClause = new SQLMergeClause(connection, configuration, e);
        sqlMergeClause.addListener(new TestLoggingListener());
        return sqlMergeClause;
    }

    protected ExtendedSQLQuery extQuery() {
        ExtendedSQLQuery extendedSQLQuery = new ExtendedSQLQuery(connection, configuration);
View Full Code Here

Examples of com.mysema.query.sql.dml.SQLUpdateClause.addListener()

        list.add(arg);
    }

    protected SQLUpdateClause update(RelationalPath<?> e) {
        SQLUpdateClause sqlUpdateClause = new SQLUpdateClause(connection, configuration, e);
        sqlUpdateClause.addListener(new TestLoggingListener());
        return sqlUpdateClause;
    }

    protected SQLInsertClause insert(RelationalPath<?> e) {
        SQLInsertClause sqlInsertClause = new SQLInsertClause(connection, configuration, e);
View Full Code Here

Examples of com.mysema.query.sql.mysql.MySQLReplaceClause.addListener()

        return extendedSQLQuery;
    }

    protected SQLInsertClause mysqlReplace(RelationalPath<?> path) {
        MySQLReplaceClause mySQLReplaceClause = new MySQLReplaceClause(connection, configuration, path);
        mySQLReplaceClause.addListener(new TestLoggingListener());
        return mySQLReplaceClause;
    }

    protected TestQuery query() {
        TestQuery testQuery = new TestQuery(connection, configuration);
View Full Code Here

Examples of com.mysema.query.sql.teradata.TeradataQuery.addListener()

        return testQuery;
    }

    protected TeradataQuery teradataQuery() {
        TeradataQuery teradataQuery = new TeradataQuery(connection, configuration);
        teradataQuery.addListener(new TestLoggingListener());
        return teradataQuery;
    }

    protected TestQuery testQuery() {
        TestQuery testQuery = new TestQuery(connection, configuration,
View Full Code Here

Examples of com.narirelays.ems.utils.watcher.directory.DirectoryWatcher.addListener()

import com.narirelays.ems.utils.watcher.directory.DirectoryWatcher;

public class TestDirectoryWatcher {
  public static void main(String[] argv){
      DirectoryWatcher dw = new DirectoryWatcher(WebVariable.appPath+"WEB-INF/templates", 10);
      dw.addListener(new XLSTemplateFileListener());
      dw.start();
  }
}
View Full Code Here

Examples of com.onpositive.semantic.model.ui.property.editors.ButtonSelector.addListener()

    };
    ButtonSelector addButton = new ButtonSelector();
    addButton.setText("add jar");
    GridData addDat = new GridData(GridData.FILL_HORIZONTAL);
    addButton.setLayoutData(addDat);
    addButton.addListener(SWT.Selection, new SWTEventListener<Button>() {

      public void handleEvent(AbstractUIElement<Button> element,
          Event event) {

        FileDialog dialog = new FileDialog(Display.getCurrent()
View Full Code Here

Examples of com.opengamma.engine.marketdata.MarketDataProvider.addListener()

      final MarketDataProviderResolver resolver) {
    super(user, specs, resolver);
    final MarketDataListener listener = new Listener();
    if (getSpecifications().size() == 1) {
      final MarketDataProvider provider = getProviders().get(0);
      provider.addListener(listener);
      _availabilityProvider = provider.getAvailabilityProvider(getSpecifications().get(0));
    } else {
      int index = 0;
      for (MarketDataProvider provider : getProviders()) {
        provider.addListener(new CompositeListener(index++, listener));
View Full Code Here

Examples of com.opengamma.livedata.client.ValueDistributor.addListener()

    // subscribe on the client side - starts sending heartbeats
    LiveDataSpecification subscription = new LiveDataSpecification(
        dataServer.getDefaultNormalizationRuleSetId(),
        ExternalId.of(identificationDomain, "USSw5 Curncy"));
    CollectingLiveDataListener listener = new CollectingLiveDataListener();
    valueDistributor.addListener(subscription, listener);

    // subscribe on the server side
    dataServer.subscribe(subscription, false);

    // Send a couple of heartbeats
View Full Code Here

Examples of com.peterhi.net.Local.addListener()

public final class ServerApp {

  public static void main(String[] args) throws Exception {
    final Local local = new Local(22222);
    local.getSocket().setSoTimeout(10);
    local.addListener(new Listener() {
      @Override
      public void received(Event event) {
        SocketAddress address = event.getAddress();
        byte[] data = event.getData(true);
        System.out.println(MessageFormat.format("Received {0} bytes of data from {1}.", data.length, address));
View Full Code Here

Examples of com.peterhi.obsolete.EventLoopRudpLocalEndpoint.addListener()

public class RudpEventLoopServer {

  public static void main(String[] args) throws Exception {
    RudpLocalEndpoint localEndpoint = new EventLoopRudpLocalEndpoint(22222);
    localEndpoint.addListener(new RudpDataListener() {
      @Override
      public void received(RudpDataEvent event) {
        try {
          System.out.println("Received " + (event.isReliable() ? "reliable" : "unreliable") +
            " data of " + event.getInputStream().available() + " bytes");
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.