Class ReflectionDebuggerFactory

java.lang.Object
org.jivesoftware.smack.debugger.ReflectionDebuggerFactory
All Implemented Interfaces:
SmackDebuggerFactory

public final class ReflectionDebuggerFactory extends Object implements SmackDebuggerFactory
  • Field Details

  • Method Details

    • 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 interface SmackDebuggerFactory
      Parameters:
      connection - the XMPP connection this debugger is going to get attached to.
      Returns:
      SmackDebugger.
      Throws:
      IllegalArgumentException - if the SmackDebugger can't be loaded.