190dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)/** 290dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) * $RCSfile$ 390dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) * $Revision$ 490dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) * $Date$ 590dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) * 65f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles) * Copyright 2003-2007 Jive Software. 790dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) * 890dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) * All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); 990dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) * you may not use this file except in compliance with the License. 105f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles) * You may obtain a copy of the License at 115f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles) * 125f1c94371a64b3196d4be9466099bb892df9b88eTorne (Richard Coles) * http://www.apache.org/licenses/LICENSE-2.0 1390dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) * 1490dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) * Unless required by applicable law or agreed to in writing, software 15a02191e04bc25c4935f804f2c080ae28663d096dBen Murdoch * distributed under the License is distributed on an "AS IS" BASIS, 16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 * See the License for the specific language governing permissions and 18 * limitations under the License. 19 */ 20 21package org.jivesoftware.smack; 22 23/** 24 * Implementors of this interface will be notified when a new {@link Connection} 25 * has been created. The newly created connection will not be actually connected to 26 * the server. Use {@link Connection#addConnectionCreationListener(ConnectionCreationListener)} 27 * to add new listeners. 28 * 29 * @author Gaston Dombiak 30 */ 31public interface ConnectionCreationListener { 32 33 /** 34 * Notification that a new connection has been created. The new connection 35 * will not yet be connected to the server. 36 * 37 * @param connection the newly created connection. 38 */ 39 public void connectionCreated(Connection connection); 40 41} 42