Class ReflectionDebuggerFactory

    • Method Detail

      • setDebuggerClass

        public static void setDebuggerClass​(java.lang.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 java.lang.Class<SmackDebuggergetDebuggerClass()
        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 java.lang.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:
        java.lang.IllegalArgumentException - if the SmackDebugger can't be loaded.