Examples of addListener()


Examples of org.jnode.net.ipv4.icmp.ICMPProtocol.addListener()

        final IPv4NetworkLayer netLayer =
                (IPv4NetworkLayer) NetUtils.getNLM().getNetworkLayer(EthernetConstants.ETH_P_IP);
        final ICMPProtocol icmpProtocol =
                (ICMPProtocol) netLayer.getProtocol(ICMPProtocol.IPPROTO_ICMP);
        icmpProtocol.addListener(this);
        try {
            int id_count = 0;
            int seq_count = 0;
            while (this.count != 0) {
                out.format(fmt_ping, dst, seq_count);
View Full Code Here

Examples of org.jnode.plugin.PluginDescriptor.addListener()

                    return getClass().getClassLoader();
                }
            });
        if (loader instanceof PluginClassLoader) {
            final PluginDescriptor descr = ((PluginClassLoader) loader).getDeclaringPluginDescriptor();
            descr.addListener(new PluginListener());
        }
    }

    /**
     * Sets the device this driver is to control.
View Full Code Here

Examples of org.jpos.util.Logger.addListener()

    }

    private void initLogger()
    {
        Logger logger = new Logger();
        logger.addListener(new SimpleLogListener());
        log = new Log(logger, "SM Test");
    }

    public void assertEqual(Object o0, Object o1)
    {
View Full Code Here

Examples of org.jpox.metadata.AbstractClassMetaData.addListener()

                    AbstractClassMetaData cmd = (AbstractClassMetaData)md;
                    EventListenerMetaData elmd = cmd.getListenerForClass(cmd.getFullClassName());
                    if (elmd == null)
                    {
                        elmd = new EventListenerMetaData(cmd.getFullClassName());
                        cmd.addListener(elmd);
                    }
                    elmd.addCallback("javax.persistence.PrePersist", getAttr(attrs, "method-name"));
                }
                else
                {
View Full Code Here

Examples of org.jpox.metadata.ClassMetaData.addListener()

                    AbstractClassMetaData cmd = (AbstractClassMetaData)md;
                    EventListenerMetaData elmd = cmd.getListenerForClass(cmd.getFullClassName());
                    if (elmd == null)
                    {
                        elmd = new EventListenerMetaData(cmd.getFullClassName());
                        cmd.addListener(elmd);
                    }
                    elmd.addCallback("javax.persistence.PrePersist", getAttr(attrs, "method-name"));
                }
                else
                {
View Full Code Here

Examples of org.jsmdr.collector.Collector.addListener()

    if (processorElts.getLength()>0)
      processor = new PreProcessor((Element)processorElts.item(0));
    else
      processor = new PreProcessor();
   
    col.addListener(processor);
    for (int i=0; i<parserElts.getLength(); i++) {
      SMDRParser parser = ParserFactory.getParser((Element)parserElts.item(i));
      processor.addListener(parser);
      parser.addListener(listener);
    }
View Full Code Here

Examples of org.jsmdr.collector.ServerSocketCollector.addListener()

    elt.setAttribute("address", "localhost");
    elt.setAttribute("port", "10000");

    ServerSocketCollector collector = new ServerSocketCollector(elt);
    assertTrue(collector.isRunning());
    collector.addListener(this);
   
    // Send a packet
    line = null;
    String test = "This is a test\n";
   
View Full Code Here

Examples of org.jsmdr.collector.UDPServerCollector.addListener()

    elt.setAttribute("address", "localhost");
    elt.setAttribute("port", "10000");
   
    UDPServerCollector collector = new UDPServerCollector(elt);
    assertTrue(collector.isRunning());
    collector.addListener(this);
   
    // Send a packet
    line = null;
    String test = "This is a test";
    byte[] testBytes = test.getBytes("UTF-8");
View Full Code Here

Examples of org.jsmdr.parser.SMDRParser.addListener()

   
    col.addListener(processor);
    for (int i=0; i<parserElts.getLength(); i++) {
      SMDRParser parser = ParserFactory.getParser((Element)parserElts.item(i));
      processor.addListener(parser);
      parser.addListener(listener);
    }
  }

  public String getFileName() {
    return this.fileName;
View Full Code Here

Examples of org.jsmdr.preprocessor.PreProcessor.addListener()

      processor = new PreProcessor();
   
    col.addListener(processor);
    for (int i=0; i<parserElts.getLength(); i++) {
      SMDRParser parser = ParserFactory.getParser((Element)parserElts.item(i));
      processor.addListener(parser);
      parser.addListener(listener);
    }
  }

  public String getFileName() {
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.