001/** 002 * 003 * Copyright 2016-2020 Florian Schmaus 004 * 005 * This file is part of smack-repl. 006 * 007 * smack-repl is free software; you can redistribute it and/or modify 008 * it under the terms of the GNU General Public License as published by 009 * the Free Software Foundation; either version 3 of the License, or 010 * (at your option) any later version. 011 * 012 * This program is distributed in the hope that it will be useful, 013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 015 * GNU General Public License for more details. 016 * 017 * You should have received a copy of the GNU General Public License 018 * along with this program; if not, write to the Free Software Foundation, 019 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 020 */ 021package org.igniterealtime.smack.smackrepl; 022 023import org.jivesoftware.smack.Smack; 024import org.jivesoftware.smack.util.dns.javax.JavaxResolver; 025 026public class SmackRepl { 027 028 public static void init() { 029 Smack.ensureInitialized(); 030 // smack-repl also pulls in smack-resolver-minidns which has higher precedence the smack-resolver-javax but 031 // won't work on Java SE platforms. Therefore explicitly setup JavaxResolver. 032 JavaxResolver.setup(); 033 // CHECKSTYLE:OFF 034 System.out.println("Smack REPL"); 035 // CHECKSTYLE:ON 036 } 037 038}