Package org.jivesoftware.smack.debugger
Class ReflectionDebuggerFactory
java.lang.Object
org.jivesoftware.smack.debugger.ReflectionDebuggerFactory
- All Implemented Interfaces:
SmackDebuggerFactory
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncreate
(XMPPConnection connection) Initialize the new SmackDebugger instance.static Class<SmackDebugger>
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 Details
-
INSTANCE
-
-
Method Details
-
setDebuggerClass
Sets custom debugger class to be created by this factory.- Parameters:
debuggerClass
- class to be used by this factory
-
getDebuggerClass
Returns debugger class used by this factory.- Returns:
- debugger class that will be used for instantiation by this factory
-
create
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.
-