Class Log4jWebInitializerImpl

    • Field Detail

      • map

        private final java.util.Map<java.lang.String,​java.lang.String> map
      • servletContext

        private final javax.servlet.ServletContext servletContext
      • name

        private java.lang.String name
    • Constructor Detail

      • Log4jWebInitializerImpl

        private Log4jWebInitializerImpl​(javax.servlet.ServletContext servletContext)
    • Method Detail

      • initializeJndi

        private void initializeJndi​(java.lang.String location)
      • initializeNonJndi

        private void initializeNonJndi​(java.lang.String location)
      • getConfigURIs

        private java.util.List<java.net.URI> getConfigURIs​(java.lang.String location)
      • getConfigURI

        private java.net.URI getConfigURI​(java.lang.String location)
      • prefixSet

        private static java.lang.String[] prefixSet​(java.util.Set<java.lang.String> set,
                                                    java.lang.String prefix)
        Collects strings starting with the given prefix from the given set.
        Parameters:
        set - a (nullable) set of strings
        prefix - a prefix to look for in the string set
        Returns:
        an array of the matching strings from the given set
      • stop

        public boolean stop​(long timeout,
                            java.util.concurrent.TimeUnit timeUnit)
        Description copied from interface: LifeCycle2
        Blocks until all tasks have completed execution after a shutdown request, or the timeout occurs, or the current thread is interrupted, whichever happens first.
        Specified by:
        stop in interface LifeCycle2
        Overrides:
        stop in class AbstractLifeCycle
        Parameters:
        timeout - the maximum time to wait
        timeUnit - the time unit of the timeout argument
        Returns:
        true if the receiver was stopped cleanly and normally, false otherwise.
      • getClassLoader

        private java.lang.ClassLoader getClassLoader()