001    /**
002     * Copyright (C) 2010-2011, FuseSource Corp.  All rights reserved.
003     *
004     *     http://fusesource.com
005     *
006     * The software in this package is published under the terms of the
007     * CDDL license a copy of which has been included with this distribution
008     * in the license.txt file.
009     */
010    package org.fusesource.hawtdispatch.transport;
011    
012    
013    /**
014     * Implemented by object that need to get injected by
015     *
016     * @author <a href="http://hiramchirino.com">Hiram Chirino</a>
017     */
018    public interface TransportServerListener {
019        
020        void onAccept(Transport transport) throws Exception;
021        
022        void onAcceptError(Exception error);
023    
024    }