Java 类org.jivesoftware.smack.debugger.SmackDebuggerFactory 实例源码

项目:Smack    文件:SmackConfiguration.java   
/**
 * @return a debugger factory or <code>null</code>
 */
public static SmackDebuggerFactory getDebuggerFactory() {
    return debuggerFactory;
}
项目:Smack    文件:SmackConfiguration.java   
/**
 * 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);
    }
}
项目:Smack    文件:SmackConfiguration.java   
/**
 * Sets Smack debugger factory.
 *
 * @param debuggerFactory new debugger factory implementation to be used by Smack
 */
public static void setDebuggerFactory(SmackDebuggerFactory debuggerFactory) {
    SmackConfiguration.debuggerFactory = debuggerFactory;
}