public class ReflectionDebuggerFactory extends java.lang.Object implements SmackDebuggerFactory
Constructor and Description |
---|
ReflectionDebuggerFactory() |
Modifier and Type | Method and Description |
---|---|
SmackDebugger |
create(XMPPConnection connection,
java.io.Writer writer,
java.io.Reader reader)
Initialize the new SmackDebugger instance.
|
static java.lang.Class<SmackDebugger> |
getDebuggerClass()
Returns debugger class used by this factory.
|
static void |
setDebuggerClass(java.lang.Class<? extends SmackDebugger> debuggerClass)
Sets custom debugger class to be created by this factory.
|
public ReflectionDebuggerFactory()
public static void setDebuggerClass(java.lang.Class<? extends SmackDebugger> debuggerClass)
debuggerClass
- class to be used by this factorypublic static java.lang.Class<SmackDebugger> getDebuggerClass()
public SmackDebugger create(XMPPConnection connection, java.io.Writer writer, java.io.Reader reader) throws java.lang.IllegalArgumentException
SmackDebuggerFactory
create
in interface SmackDebuggerFactory
connection
- connection.writer
- connection writer.reader
- connection reader.java.lang.IllegalArgumentException
- if the SmackDebugger can't be loaded.