public final class ReflectionDebuggerFactory extends Object implements SmackDebuggerFactory
Modifier and Type | Field and Description |
---|---|
static ReflectionDebuggerFactory |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
SmackDebugger |
create(XMPPConnection connection)
Initialize the new SmackDebugger instance.
|
static Class<SmackDebugger> |
getDebuggerClass()
Returns debugger class used by this factory.
|
static void |
setDebuggerClass(Class<? extends SmackDebugger> debuggerClass)
Sets custom debugger class to be created by this factory.
|
public static final ReflectionDebuggerFactory INSTANCE
public static void setDebuggerClass(Class<? extends SmackDebugger> debuggerClass)
debuggerClass
- class to be used by this factorypublic static Class<SmackDebugger> getDebuggerClass()
public SmackDebugger create(XMPPConnection connection) throws IllegalArgumentException
SmackDebuggerFactory
create
in interface SmackDebuggerFactory
connection
- the XMPP connection this debugger is going to get attached to.IllegalArgumentException
- if the SmackDebugger can't be loaded.