Package org.jivesoftware.smack.debugger
Class ReflectionDebuggerFactory
- java.lang.Object
-
- org.jivesoftware.smack.debugger.ReflectionDebuggerFactory
-
- All Implemented Interfaces:
SmackDebuggerFactory
public final class ReflectionDebuggerFactory extends Object implements SmackDebuggerFactory
-
-
Field Summary
Fields Modifier and Type Field Description static ReflectionDebuggerFactory
INSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
INSTANCE
public static final ReflectionDebuggerFactory INSTANCE
-
-
Method Detail
-
setDebuggerClass
public static void setDebuggerClass(Class<? extends SmackDebugger> debuggerClass)
Sets custom debugger class to be created by this factory.- Parameters:
debuggerClass
- class to be used by this factory
-
getDebuggerClass
public static Class<SmackDebugger> getDebuggerClass()
Returns debugger class used by this factory.- Returns:
- debugger class that will be used for instantiation by this factory
-
create
public SmackDebugger create(XMPPConnection connection) throws IllegalArgumentException
Description copied from interface:SmackDebuggerFactory
Initialize the new SmackDebugger instance.- Specified by:
create
in interfaceSmackDebuggerFactory
- Parameters:
connection
- the XMPP connection this debugger is going to get attached to.- Returns:
- SmackDebugger.
- Throws:
IllegalArgumentException
- if the SmackDebugger can't be loaded.
-
-