类 DefaultRestartInitializer

    • 方法详细资料

      • isMain

        protected boolean isMain​(Thread thread)
        Returns if the thread is for a main invocation. By default checks the name of the thread and the context classloader.
        参数:
        thread - the thread to check
        返回:
        true if the thread is a main invocation
      • isSkippedStackElement

        protected boolean isSkippedStackElement​(StackTraceElement element)
        Checks if a specific StackTraceElement should cause the initializer to be skipped.
        参数:
        element - the stack element to check
        返回:
        true if the stack element means that the initializer should be skipped
      • getUrls

        protected URL[] getUrls​(Thread thread)
        Return the URLs that should be used with initialization.
        参数:
        thread - the source thread
        返回:
        the URLs