/** * @return a debugger factory or <code>null</code> */ public static SmackDebuggerFactory getDebuggerFactory() { return debuggerFactory; }
/** * Creates new debugger instance with given arguments as parameters. May * return <code>null</code> if no DebuggerFactory is set or if the factory * did not produce a debugger. * * @param connection * @param writer * @param reader * @return a new debugger or <code>null</code> */ public static SmackDebugger createDebugger(XMPPConnection connection, Writer writer, Reader reader) { SmackDebuggerFactory factory = getDebuggerFactory(); if (factory == null) { return null; } else { return factory.create(connection, writer, reader); } }
/** * Sets Smack debugger factory. * * @param debuggerFactory new debugger factory implementation to be used by Smack */ public static void setDebuggerFactory(SmackDebuggerFactory debuggerFactory) { SmackConfiguration.debuggerFactory = debuggerFactory; }