Examples of Listener


Examples of connection.listener.Listener

    array = new ConcurrentHashMap<Integer, ClientConnection>();
  }

  public void listen()
  {
    new Listener(this);
    new SecureListener(this);
  }
View Full Code Here

Examples of de.mhus.lib.parser.HtmlLinkParser.Listener

  protected String href;
  protected String target;

  public void testASingle() throws Exception {
    String test = "<a href='linkhref' target='linktarget'>LinkText</a>";
    Listener listener = new HtmlLinkParser.Listener() {
     
      @Override
      public void foundTag(Descriptor desc) {
        href = desc.getParameter("href");
        target = desc.getParameter("target");
View Full Code Here

Examples of edu.mit.csail.sdg.alloy4.Listener

         private final boolean hidePrivate = vizState.hidePrivate(), hideMeta = vizState.hideMeta();
         {
            do_start();
            setRootVisible(false);
            setShowsRootHandles(false);
            listeners.add(new Listener() {
               public Object do_action(Object sender, Event event) { return null; }
               public Object do_action(Object sender, Event event, Object arg) { zoom(arg); return null; }
            });
         }
         @Override public String convertValueToText(Object value, boolean sel, boolean expand, boolean leaf, int i, boolean focus) {
View Full Code Here

Examples of floobits.Listener

        try {
            listener.shutdown();
        } catch (Throwable e) {
            Flog.warn(e);
        }
        listener = new Listener(this);
    }
View Full Code Here

Examples of freenet.node.probe.Listener

  public void run(final FCPConnectionHandler handler, Node node) throws MessageInvalidException {
    if(!handler.hasFullAccess()) {
      throw new MessageInvalidException(ProtocolErrorMessage.ACCESS_DENIED, "Probe requires full access.", identifier, false);
    }

    Listener listener = new Listener() {
      @Override
      public void onError(Error error, Byte code, boolean local) {
        handler.outputHandler.queue(new ProbeError(identifier, error, code, local));
      }
View Full Code Here

Examples of gherkin.lexer.Listener

import static org.mockito.Mockito.verify;

public class I18nLexerTest {
    @Test
    public void shouldScanMultiLineFeature() {
        Listener listener = mock(Listener.class);
        Lexer lexer = new I18nLexer(listener);

        String feature = "" +
                " Feature: Hello\n" +
                "     Big    \n" +
View Full Code Here

Examples of httl.spi.Listener

  /**
   * httl.properties: interceptors=httl.spi.interceptors.ExtendsInterceptor
   */
  @Reqiured
  public void setInterceptors(Interceptor[] interceptors) {
    Listener last = null;
    for (int i = interceptors.length - 1; i >= 0; i--) {
      final Interceptor current = interceptors[i];
      final Listener next = last;
      last = new Listener() {
        public void render(Context context) throws IOException, ParseException {
          if (next == null) {
            Listener listener = (Listener) context.get(LISTENER_KEY);
            if (listener != null) {
              current.render(context, listener);
            }
          } else {
            current.render(context, next);
View Full Code Here

Examples of hudson.remoting.Channel.Listener

            final Socket s = new Socket(name,p);

            // ready
            computer.setChannel(new BufferedInputStream(new SocketInputStream(s)),
                new BufferedOutputStream(new SocketOutputStream(s)),
                listener.getLogger(),new Listener() {
                    @Override
                    public void onClosed(Channel channel, IOException cause) {
                        afterDisconnect(computer,listener);
                    }
                });
View Full Code Here

Examples of info.walnutstreet.vs.ps01.server.listener.Listener

   * Constructor.
   *
   * @throws IOException
   */
  public Server() throws IOException {
    this.listener = new Listener();
  }
View Full Code Here

Examples of javax.xml.bind.Marshaller.Listener

public class LinkDecorator implements DecoratorProcessor<Marshaller, AddLinks> {

  public Marshaller decorate(Marshaller target, final AddLinks annotation,
      Class type, Annotation[] annotations, MediaType mediaType) {
    target.setListener(new Listener() {
      @Override
      public void beforeMarshal(Object entity) {
        UriInfo uriInfo = ResteasyProviderFactory.getContextData(UriInfo.class);
        ResourceMethodRegistry registry = (ResourceMethodRegistry) ResteasyProviderFactory.getContextData(Registry.class);
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.