0

Publishing site for version 0.1.3

This commit is contained in:
Ronald J. Jenkins Jr
2016-04-02 04:57:36 +00:00
parent 4f9c6e65fa
commit 0daf61ad7f
59 changed files with 3167 additions and 1652 deletions

View File

@@ -1,11 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head><meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>BukkitPluginLoggerFactory xref</title>
<title>BukkitLoggerFactory xref</title>
<link type="text/css" rel="stylesheet" href="../../../stylesheet.css" />
</head>
<body>
<div id="overview"><a href="../../../../apidocs/org/slf4j/impl/BukkitPluginLoggerFactory.html">View Javadoc</a></div><pre>
<div id="overview"><a href="../../../../apidocs/org/slf4j/impl/BukkitLoggerFactory.html">View Javadoc</a></div><pre>
<a class="jxr_linenumber" name="L1" href="#L1">1</a> <em class="jxr_comment">/*</em>
<a class="jxr_linenumber" name="L2" href="#L2">2</a> <em class="jxr_comment"> * This entire file is sublicensed to you under GPLv3 or (at your option) any</em>
<a class="jxr_linenumber" name="L3" href="#L3">3</a> <em class="jxr_comment"> * later version. The original copyright notice is retained below.</em>
@@ -60,23 +60,23 @@
<a class="jxr_linenumber" name="L52" href="#L52">52</a>
<a class="jxr_linenumber" name="L53" href="#L53">53</a> <em class="jxr_javadoccomment">/**</em>
<a class="jxr_linenumber" name="L54" href="#L54">54</a> <em class="jxr_javadoccomment"> * An implementation of {@link ILoggerFactory} which always returns</em>
<a class="jxr_linenumber" name="L55" href="#L55">55</a> <em class="jxr_javadoccomment"> * {@link BukkitPluginLoggerAdapter} instances.</em>
<a class="jxr_linenumber" name="L55" href="#L55">55</a> <em class="jxr_javadoccomment"> * {@link BukkitLoggerAdapter} instances.</em>
<a class="jxr_linenumber" name="L56" href="#L56">56</a> <em class="jxr_javadoccomment"> *</em>
<a class="jxr_linenumber" name="L57" href="#L57">57</a> <em class="jxr_javadoccomment"> * @author Ceki G&amp;uuml;lc&amp;uuml;</em>
<a class="jxr_linenumber" name="L58" href="#L58">58</a> <em class="jxr_javadoccomment"> * @author Ronald Jack Jenkins Jr.</em>
<a class="jxr_linenumber" name="L59" href="#L59">59</a> <em class="jxr_javadoccomment"> */</em>
<a class="jxr_linenumber" name="L60" href="#L60">60</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../org/slf4j/impl/BukkitPluginLoggerFactory.html">BukkitPluginLoggerFactory</a> <strong class="jxr_keyword">implements</strong> ILoggerFactory {
<a class="jxr_linenumber" name="L60" href="#L60">60</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../org/slf4j/impl/BukkitLoggerFactory.html">BukkitLoggerFactory</a> <strong class="jxr_keyword">implements</strong> ILoggerFactory {
<a class="jxr_linenumber" name="L61" href="#L61">61</a>
<a class="jxr_linenumber" name="L62" href="#L62">62</a> ConcurrentMap&lt;String, Logger&gt; loggerMap;
<a class="jxr_linenumber" name="L63" href="#L63">63</a>
<a class="jxr_linenumber" name="L64" href="#L64">64</a> <strong class="jxr_keyword">public</strong> <a href="../../../org/slf4j/impl/BukkitPluginLoggerFactory.html">BukkitPluginLoggerFactory</a>() {
<a class="jxr_linenumber" name="L64" href="#L64">64</a> <strong class="jxr_keyword">public</strong> <a href="../../../org/slf4j/impl/BukkitLoggerFactory.html">BukkitLoggerFactory</a>() {
<a class="jxr_linenumber" name="L65" href="#L65">65</a> <strong class="jxr_keyword">this</strong>.loggerMap = <strong class="jxr_keyword">new</strong> ConcurrentHashMap&lt;String, Logger&gt;();
<a class="jxr_linenumber" name="L66" href="#L66">66</a> <em class="jxr_comment">// ensure jul initialization. see also SLF4J-359</em>
<a class="jxr_linenumber" name="L67" href="#L67">67</a> java.util.logging.LogManager.getLogManager();
<a class="jxr_linenumber" name="L68" href="#L68">68</a> }
<a class="jxr_linenumber" name="L69" href="#L69">69</a>
<a class="jxr_linenumber" name="L70" href="#L70">70</a> <em class="jxr_javadoccomment">/**</em>
<a class="jxr_linenumber" name="L71" href="#L71">71</a> <em class="jxr_javadoccomment"> * Return an appropriate {@link BukkitPluginLoggerAdapter} instance by name.</em>
<a class="jxr_linenumber" name="L71" href="#L71">71</a> <em class="jxr_javadoccomment"> * Return an appropriate {@link BukkitLoggerAdapter} instance by name.</em>
<a class="jxr_linenumber" name="L72" href="#L72">72</a> <em class="jxr_javadoccomment"> */</em>
<a class="jxr_linenumber" name="L73" href="#L73">73</a> @Override
<a class="jxr_linenumber" name="L74" href="#L74">74</a> <strong class="jxr_keyword">public</strong> Logger getLogger(<strong class="jxr_keyword">final</strong> String name) {
@@ -84,7 +84,7 @@
<a class="jxr_linenumber" name="L76" href="#L76">76</a> <strong class="jxr_keyword">if</strong> (bukkitLogger != <strong class="jxr_keyword">null</strong>) {
<a class="jxr_linenumber" name="L77" href="#L77">77</a> <strong class="jxr_keyword">return</strong> bukkitLogger;
<a class="jxr_linenumber" name="L78" href="#L78">78</a> } <strong class="jxr_keyword">else</strong> {
<a class="jxr_linenumber" name="L79" href="#L79">79</a> <strong class="jxr_keyword">final</strong> Logger newInstance = <strong class="jxr_keyword">new</strong> <a href="../../../org/slf4j/impl/BukkitPluginLoggerAdapter.html">BukkitPluginLoggerAdapter</a>(name);
<a class="jxr_linenumber" name="L79" href="#L79">79</a> <strong class="jxr_keyword">final</strong> Logger newInstance = <strong class="jxr_keyword">new</strong> <a href="../../../org/slf4j/impl/BukkitLoggerAdapter.html">BukkitLoggerAdapter</a>(name);
<a class="jxr_linenumber" name="L80" href="#L80">80</a> <strong class="jxr_keyword">final</strong> Logger oldInstance = <strong class="jxr_keyword">this</strong>.loggerMap.putIfAbsent(name, newInstance);
<a class="jxr_linenumber" name="L81" href="#L81">81</a> <strong class="jxr_keyword">return</strong> oldInstance == <strong class="jxr_keyword">null</strong> ? newInstance : oldInstance;
<a class="jxr_linenumber" name="L82" href="#L82">82</a> }

View File

@@ -70,9 +70,9 @@
<a class="jxr_linenumber" name="L62" href="#L62">62</a> <em class="jxr_javadoccomment"> * against. The value of this field is modified with each major release.</em>
<a class="jxr_linenumber" name="L63" href="#L63">63</a> <em class="jxr_javadoccomment"> */</em>
<a class="jxr_linenumber" name="L64" href="#L64">64</a> <em class="jxr_comment">// to avoid constant folding by the compiler, this field must *not* be final</em>
<a class="jxr_linenumber" name="L65" href="#L65">65</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> String REQUESTED_API_VERSION = <span class="jxr_string">"1.6.99"</span>; <em class="jxr_comment">// !final</em>
<a class="jxr_linenumber" name="L65" href="#L65">65</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> String REQUESTED_API_VERSION = <span class="jxr_string">"1.6.99"</span>; <em class="jxr_comment">// !final</em>
<a class="jxr_linenumber" name="L66" href="#L66">66</a>
<a class="jxr_linenumber" name="L67" href="#L67">67</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String loggerFactoryClassStr = BukkitPluginLoggerFactory.<strong class="jxr_keyword">class</strong>.getName();
<a class="jxr_linenumber" name="L67" href="#L67">67</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String loggerFactoryClassStr = BukkitLoggerFactory.<strong class="jxr_keyword">class</strong>.getName();
<a class="jxr_linenumber" name="L68" href="#L68">68</a>
<a class="jxr_linenumber" name="L69" href="#L69">69</a> <em class="jxr_javadoccomment">/**</em>
<a class="jxr_linenumber" name="L70" href="#L70">70</a> <em class="jxr_javadoccomment"> * The unique instance of this class.</em>
@@ -86,7 +86,7 @@
<a class="jxr_linenumber" name="L78" href="#L78">78</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> ILoggerFactory loggerFactory;
<a class="jxr_linenumber" name="L79" href="#L79">79</a>
<a class="jxr_linenumber" name="L80" href="#L80">80</a> <strong class="jxr_keyword">private</strong> <a href="../../../org/slf4j/impl/StaticLoggerBinder.html">StaticLoggerBinder</a>() {
<a class="jxr_linenumber" name="L81" href="#L81">81</a> <strong class="jxr_keyword">this</strong>.loggerFactory = <strong class="jxr_keyword">new</strong> <a href="../../../org/slf4j/impl/BukkitPluginLoggerFactory.html">BukkitPluginLoggerFactory</a>();
<a class="jxr_linenumber" name="L81" href="#L81">81</a> <strong class="jxr_keyword">this</strong>.loggerFactory = <strong class="jxr_keyword">new</strong> <a href="../../../org/slf4j/impl/BukkitLoggerFactory.html">BukkitLoggerFactory</a>();
<a class="jxr_linenumber" name="L82" href="#L82">82</a> }
<a class="jxr_linenumber" name="L83" href="#L83">83</a>
<a class="jxr_linenumber" name="L84" href="#L84">84</a> <em class="jxr_javadoccomment">/**</em>

View File

@@ -3,7 +3,7 @@
<html xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>SLF4Bukkit 0.1.2 Reference Package org.slf4j.impl</title>
<title>SLF4Bukkit 0.1.3 Reference Package org.slf4j.impl</title>
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="style" />
</head>
<body>
@@ -16,10 +16,10 @@
<ul>
<li>
<a href="BukkitPluginLoggerAdapter.html" target="classFrame">BukkitPluginLoggerAdapter</a>
<a href="BukkitLoggerAdapter.html" target="classFrame">BukkitLoggerAdapter</a>
</li>
<li>
<a href="BukkitPluginLoggerFactory.html" target="classFrame">BukkitPluginLoggerFactory</a>
<a href="BukkitLoggerFactory.html" target="classFrame">BukkitLoggerFactory</a>
</li>
<li>
<a href="StaticLoggerBinder.html" target="classFrame">StaticLoggerBinder</a>

View File

@@ -3,7 +3,7 @@
<html xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>SLF4Bukkit 0.1.2 Reference Package org.slf4j.impl</title>
<title>SLF4Bukkit 0.1.3 Reference Package org.slf4j.impl</title>
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="style" />
</head>
<body>
@@ -37,12 +37,12 @@
<tbody>
<tr>
<td>
<a href="BukkitPluginLoggerAdapter.html" target="classFrame">BukkitPluginLoggerAdapter</a>
<a href="BukkitLoggerAdapter.html" target="classFrame">BukkitLoggerAdapter</a>
</td>
</tr>
<tr>
<td>
<a href="BukkitPluginLoggerFactory.html" target="classFrame">BukkitPluginLoggerFactory</a>
<a href="BukkitLoggerFactory.html" target="classFrame">BukkitLoggerFactory</a>
</td>
</tr>
<tr>