http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/1b5bde65/content/site/apidocs/org/apache/juneau/BeanSession.html
----------------------------------------------------------------------
diff --git a/content/site/apidocs/org/apache/juneau/BeanSession.html
b/content/site/apidocs/org/apache/juneau/BeanSession.html
index 6fafaf9..6a96cec 100644
--- a/content/site/apidocs/org/apache/juneau/BeanSession.html
+++ b/content/site/apidocs/org/apache/juneau/BeanSession.html
@@ -117,9 +117,10 @@ var activeTableTab = "activeTableTab";
</dl>
<hr>
<br>
-<pre>public class <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.37">BeanSession</a>
+<pre>public class <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.38">BeanSession</a>
extends <a href="../../../org/apache/juneau/Session.html" title="class in
org.apache.juneau">Session</a></pre>
<div class="block">Session object that lives for the duration of a single use
of <a href="../../../org/apache/juneau/serializer/Serializer.html" title="class
in org.apache.juneau.serializer"><code>Serializer</code></a> or <a
href="../../../org/apache/juneau/parser/Parser.html" title="class in
org.apache.juneau.parser"><code>Parser</code></a>.
+
<p>
This class is NOT thread safe. It is meant to be discarded after one-time
use.</div>
</li>
@@ -212,7 +213,7 @@ extends <a href="../../../org/apache/juneau/Session.html"
title="class in org.ap
<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true"
title="class or interface in java.lang">Object</a> value,
<a href="../../../org/apache/juneau/ClassMeta.html" title="class
in org.apache.juneau">ClassMeta</a><T> type)</code>
<div class="block">Same as <a
href="../../../org/apache/juneau/BeanSession.html#convertToType-java.lang.Object-org.apache.juneau.ClassMeta-"><code>convertToType(Object,
ClassMeta)</code></a>, except used for instantiating inner member classes that
must
- be instantiated within another class instance.</div>
+ be instantiated within another class instance.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
@@ -317,15 +318,15 @@ extends <a href="../../../org/apache/juneau/Session.html"
title="class in org.ap
<td class="colFirst"><code><T> T</code></td>
<td class="colLast"><code><span class="memberNameLink"><a
href="../../../org/apache/juneau/BeanSession.html#newBean-java.lang.Class-">newBean</a></span>(<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true"
title="class or interface in java.lang">Class</a><T> c)</code>
<div class="block">Creates a new empty bean of the specified type, except used
for instantiating inner member classes that must
- be instantiated within another class instance.</div>
+ be instantiated within another class instance.</div>
</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code><T> T</code></td>
<td class="colLast"><code><span class="memberNameLink"><a
href="../../../org/apache/juneau/BeanSession.html#newBean-java.lang.Object-java.lang.Class-">newBean</a></span>(<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true"
title="class or interface in java.lang">Object</a> outer,
<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true"
title="class or interface in java.lang">Class</a><T> c)</code>
-<div class="block">Same as <a
href="../../../org/apache/juneau/BeanSession.html#newBean-java.lang.Class-"><code>newBean(Class)</code></a>,
except used for instantiating inner member classes that must
- be instantiated within another class instance.</div>
+<div class="block">Same as <a
href="../../../org/apache/juneau/BeanSession.html#newBean-java.lang.Class-"><code>newBean(Class)</code></a>,
except used for instantiating inner member classes that must be instantiated
+ within another class instance.</div>
</td>
</tr>
<tr id="i25" class="rowColor">
@@ -338,8 +339,8 @@ extends <a href="../../../org/apache/juneau/Session.html"
title="class in org.ap
<td class="colFirst"><code><T> <a
href="../../../org/apache/juneau/BeanMap.html" title="class in
org.apache.juneau">BeanMap</a><T></code></td>
<td class="colLast"><code><span class="memberNameLink"><a
href="../../../org/apache/juneau/BeanSession.html#newBeanMap-java.lang.Object-java.lang.Class-">newBeanMap</a></span>(<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true"
title="class or interface in java.lang">Object</a> outer,
<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true"
title="class or interface in java.lang">Class</a><T> c)</code>
-<div class="block">Same as <a
href="../../../org/apache/juneau/BeanSession.html#newBeanMap-java.lang.Class-"><code>newBeanMap(Class)</code></a>,
except used for instantiating inner member classes that must
- be instantiated within another class instance.</div>
+<div class="block">Same as <a
href="../../../org/apache/juneau/BeanSession.html#newBeanMap-java.lang.Class-"><code>newBeanMap(Class)</code></a>,
except used for instantiating inner member classes that must be instantiated
+ within another class instance.</div>
</td>
</tr>
<tr id="i27" class="rowColor">
@@ -377,8 +378,8 @@ extends <a href="../../../org/apache/juneau/Session.html"
title="class in org.ap
<td class="colFirst"><code><T> <a
href="../../../org/apache/juneau/BeanMap.html" title="class in
org.apache.juneau">BeanMap</a><T></code></td>
<td class="colLast"><code><span class="memberNameLink"><a
href="../../../org/apache/juneau/BeanSession.html#toBeanMap-T-java.lang.Class-">toBeanMap</a></span>(T o,
<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true"
title="class or interface in java.lang">Class</a><? super
T> c)</code>
-<div class="block">Wraps an object inside a <a
href="../../../org/apache/juneau/BeanMap.html" title="class in
org.apache.juneau"><code>BeanMap</code></a> object (i.e.: a modifiable <a
href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true"
title="class or interface in java.util"><code>Map</code></a>)
- defined as a bean for one of its class, a super class, or an implemented
interface.</div>
+<div class="block">Wraps an object inside a <a
href="../../../org/apache/juneau/BeanMap.html" title="class in
org.apache.juneau"><code>BeanMap</code></a> object (i.e.: a modifiable <a
href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true"
title="class or interface in java.util"><code>Map</code></a>) defined as a
bean for one of its
+ class, a super class, or an implemented interface.</div>
</td>
</tr>
</table>
@@ -416,7 +417,7 @@ extends <a href="../../../org/apache/juneau/Session.html"
title="class in org.ap
<ul class="blockListLast">
<li class="blockList">
<h4>BeanSession</h4>
-<pre>protected <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.59">BeanSession</a>(<a
href="../../../org/apache/juneau/BeanContext.html" title="class in
org.apache.juneau">BeanContext</a> ctx,
+<pre>protected <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.64">BeanSession</a>(<a
href="../../../org/apache/juneau/BeanContext.html" title="class in
org.apache.juneau">BeanContext</a> ctx,
<a href="../../../org/apache/juneau/ObjectMap.html"
title="class in org.apache.juneau">ObjectMap</a> op,
<a
href="http://docs.oracle.com/javase/7/docs/api/java/util/Locale.html?is-external=true"
title="class or interface in java.util">Locale</a> locale,
<a
href="http://docs.oracle.com/javase/7/docs/api/java/util/TimeZone.html?is-external=true"
title="class or interface in java.util">TimeZone</a> timeZone,
@@ -425,13 +426,13 @@ extends <a href="../../../org/apache/juneau/Session.html"
title="class in org.ap
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>op</code> - The override properties.
- These override any context properties defined in the context.</dd>
+ These override any context properties defined in the context.</dd>
<dd><code>ctx</code> - The context creating this session object.
- The context contains all the configuration settings for this object.</dd>
+ The context contains all the configuration settings for this object.</dd>
<dd><code>locale</code> - The session locale.
- If <jk>null</jk>, then the locale defined on the context is used.</dd>
+ If <jk>null</jk>, then the locale defined on the context is used.</dd>
<dd><code>timeZone</code> - The session timezone.
- If <jk>null</jk>, then the timezone defined on the context is used.</dd>
+ If <jk>null</jk>, then the timezone defined on the context is used.</dd>
<dd><code>mediaType</code> - The session media type (e.g.
<js>"application/json"</js>).</dd>
</dl>
</li>
@@ -450,8 +451,9 @@ extends <a href="../../../org/apache/juneau/Session.html"
title="class in org.ap
<ul class="blockList">
<li class="blockList">
<h4>getLocale</h4>
-<pre>public final <a
href="http://docs.oracle.com/javase/7/docs/api/java/util/Locale.html?is-external=true"
title="class or interface in java.util">Locale</a> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.90">getLocale</a>()</pre>
+<pre>public final <a
href="http://docs.oracle.com/javase/7/docs/api/java/util/Locale.html?is-external=true"
title="class or interface in java.util">Locale</a> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.96">getLocale</a>()</pre>
<div class="block">Returns the locale defined on this session.
+
<p>
The locale is determined in the following order:
<ol>
@@ -472,8 +474,10 @@ extends <a href="../../../org/apache/juneau/Session.html"
title="class in org.ap
<ul class="blockList">
<li class="blockList">
<h4>getTimeZone</h4>
-<pre>public final <a
href="http://docs.oracle.com/javase/7/docs/api/java/util/TimeZone.html?is-external=true"
title="class or interface in java.util">TimeZone</a> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.105">getTimeZone</a>()</pre>
+<pre>public final <a
href="http://docs.oracle.com/javase/7/docs/api/java/util/TimeZone.html?is-external=true"
title="class or interface in java.util">TimeZone</a> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.113">getTimeZone</a>()</pre>
<div class="block">Returns the timezone defined on this session.
+
+ <p>
The timezone is determined in the following order:
<ol>
<li><code>timeZone</code> parameter passed in through constructor.
@@ -492,7 +496,7 @@ extends <a href="../../../org/apache/juneau/Session.html"
title="class in org.ap
<ul class="blockList">
<li class="blockList">
<h4>isDebug</h4>
-<pre>public final boolean <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.114">isDebug</a>()</pre>
+<pre>public final boolean <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.122">isDebug</a>()</pre>
<div class="block">Returns the <a
href="../../../org/apache/juneau/BeanContext.html#BEAN_debug"><code>BeanContext.BEAN_debug</code></a>
setting value for this session.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
@@ -506,8 +510,10 @@ extends <a href="../../../org/apache/juneau/Session.html"
title="class in org.ap
<ul class="blockList">
<li class="blockList">
<h4>isIgnoreUnknownBeanProperties</h4>
-<pre>public final boolean <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.124">isIgnoreUnknownBeanProperties</a>()</pre>
+<pre>public final boolean <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.134">isIgnoreUnknownBeanProperties</a>()</pre>
<div class="block">Bean property getter:
<property>ignoreUnknownBeanProperties</property>.
+
+ <p>
See <a
href="../../../org/apache/juneau/BeanContext.html#BEAN_ignoreUnknownBeanProperties"><code>BeanContext.BEAN_ignoreUnknownBeanProperties</code></a>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
@@ -521,10 +527,11 @@ extends <a href="../../../org/apache/juneau/Session.html"
title="class in org.ap
<ul class="blockList">
<li class="blockList">
<h4>convertToType</h4>
-<pre>public final <T> T <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.139">convertToType</a>(<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true"
title="class or interface in java.lang">Object</a> value,
+<pre>public final <T> T <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.150">convertToType</a>(<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true"
title="class or interface in java.lang">Object</a> value,
<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true"
title="class or interface in java.lang">Class</a><T> type)
throws <a
href="../../../org/apache/juneau/InvalidDataConversionException.html"
title="class in org.apache.juneau">InvalidDataConversionException</a></pre>
<div class="block">Converts the specified value to the specified class type.
+
<p>
See <a
href="../../../org/apache/juneau/BeanSession.html#convertToType-java.lang.Object-org.apache.juneau.ClassMeta-"><code>convertToType(Object,
ClassMeta)</code></a> for the list of valid conversions.</div>
<dl>
@@ -546,7 +553,7 @@ extends <a href="../../../org/apache/juneau/Session.html"
title="class in org.ap
<ul class="blockList">
<li class="blockList">
<h4>convertToType</h4>
-<pre>public final <T> T <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.158">convertToType</a>(<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true"
title="class or interface in java.lang">Object</a> outer,
+<pre>public final <T> T <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.170">convertToType</a>(<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true"
title="class or interface in java.lang">Object</a> outer,
<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true"
title="class or interface in java.lang">Object</a> value,
<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true"
title="class or interface in java.lang">Class</a><T> type)
throws <a
href="../../../org/apache/juneau/InvalidDataConversionException.html"
title="class in org.apache.juneau">InvalidDataConversionException</a></pre>
@@ -557,7 +564,7 @@ extends <a href="../../../org/apache/juneau/Session.html"
title="class in org.ap
<dd><code>T</code> - The class type to convert the value to.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>outer</code> - If class is a member class, this is the instance of
the containing class.
- Should be <jk>null</jk> if not a member class.</dd>
+ Should be <jk>null</jk> if not a member class.</dd>
<dd><code>value</code> - The value to convert.</dd>
<dd><code>type</code> - The class type to convert the value to.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
@@ -573,12 +580,14 @@ extends <a href="../../../org/apache/juneau/Session.html"
title="class in org.ap
<ul class="blockList">
<li class="blockList">
<h4>convertToType</h4>
-<pre>public final <T> T <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.302">convertToType</a>(<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true"
title="class or interface in java.lang">Object</a> value,
+<pre>public final <T> T <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.309">convertToType</a>(<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true"
title="class or interface in java.lang">Object</a> value,
<a
href="../../../org/apache/juneau/ClassMeta.html" title="class in
org.apache.juneau">ClassMeta</a><T> type)
throws <a
href="../../../org/apache/juneau/InvalidDataConversionException.html"
title="class in org.apache.juneau">InvalidDataConversionException</a></pre>
<div class="block">Casts the specified value into the specified type.
+
<p>
If the value isn't an instance of the specified type, then converts the value
if possible.
+
<p>
The following conversions are valid:
<table class='styled'>
@@ -604,8 +613,7 @@ extends <a href="../../../org/apache/juneau/Session.html"
title="class in org.ap
<tr>
<td>
<code>Number</code> (e.g. <code>Integer</code>, <code>Short</code>,
<code>Float</code>,...)
- <br>
- <code>Number.<jsf>TYPE</jsf></code> (e.g.
<code>Integer.<jsf>TYPE</jsf></code>,
+ <br><code>Number.<jsf>TYPE</jsf></code> (e.g.
<code>Integer.<jsf>TYPE</jsf></code>,
<code>Short.<jsf>TYPE</jsf></code>,
<code>Float.<jsf>TYPE</jsf></code>,...)
</td>
<td>
@@ -632,8 +640,7 @@ extends <a href="../../../org/apache/juneau/Session.html"
title="class in org.ap
</td>
<td>
<code>Collection<Object></code>
- <br>
- <code>Object[]</code>
+ <br><code>Object[]</code>
</td>
<td>
If <code>Collection</code> is not constructible, a
<code>ObjectList</code> is created.
@@ -654,10 +661,8 @@ extends <a href="../../../org/apache/juneau/Session.html"
title="class in org.ap
</td>
<td>
<code>List<List<X>></code>
- <br>
- <code>List<X[]></code>
- <br>
- <code>List[]<X></code>
+ <br><code>List<X[]></code>
+ <br><code>List[]<X></code>
</td>
<td> </td>
</tr>
@@ -693,12 +698,9 @@ extends <a href="../../../org/apache/juneau/Session.html"
title="class in org.ap
<tr>
<td>
Anything with one of the following methods:
- <br>
- <code><jk>public static</jk> T fromString(String)</code>
- <br>
- <code><jk>public static</jk> T valueOf(String)</code>
- <br>
- <code><jk>public</jk> T(String)</code>
+ <br><code><jk>public static</jk> T fromString(String)</code>
+ <br><code><jk>public static</jk> T valueOf(String)</code>
+ <br><code><jk>public</jk> T(String)</code>
</td>
<td>
<code>String</code>
@@ -727,18 +729,18 @@ extends <a href="../../../org/apache/juneau/Session.html"
title="class in org.ap
<ul class="blockList">
<li class="blockList">
<h4>convertToType</h4>
-<pre>public final <T> T <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.318">convertToType</a>(<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true"
title="class or interface in java.lang">Object</a> outer,
+<pre>public final <T> T <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.326">convertToType</a>(<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true"
title="class or interface in java.lang">Object</a> outer,
<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true"
title="class or interface in java.lang">Object</a> value,
<a
href="../../../org/apache/juneau/ClassMeta.html" title="class in
org.apache.juneau">ClassMeta</a><T> type)
throws <a
href="../../../org/apache/juneau/InvalidDataConversionException.html"
title="class in org.apache.juneau">InvalidDataConversionException</a></pre>
<div class="block">Same as <a
href="../../../org/apache/juneau/BeanSession.html#convertToType-java.lang.Object-org.apache.juneau.ClassMeta-"><code>convertToType(Object,
ClassMeta)</code></a>, except used for instantiating inner member classes that
must
- be instantiated within another class instance.</div>
+ be instantiated within another class instance.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>T</code> - The class type to convert the value to.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>outer</code> - If class is a member class, this is the instance of
the containing class.
- Should be <jk>null</jk> if not a member class.</dd>
+ Should be <jk>null</jk> if not a member class.</dd>
<dd><code>value</code> - The value to convert.</dd>
<dd><code>type</code> - The class type to convert the value to.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
@@ -754,15 +756,17 @@ extends <a href="../../../org/apache/juneau/Session.html"
title="class in org.ap
<ul class="blockList">
<li class="blockList">
<h4>toArray</h4>
-<pre>public final <a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true"
title="class or interface in java.lang">Object</a> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.645">toArray</a>(<a
href="../../../org/apache/juneau/ClassMeta.html" title="class in
org.apache.juneau">ClassMeta</a><?> type,
+<pre>public final <a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true"
title="class or interface in java.lang">Object</a> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.655">toArray</a>(<a
href="../../../org/apache/juneau/ClassMeta.html" title="class in
org.apache.juneau">ClassMeta</a><?> type,
<a
href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true"
title="class or interface in
java.util">Collection</a><?> list)</pre>
<div class="block">Converts the contents of the specified list into an array.
+
<p>
Works on both object and primitive arrays.
+
<p>
- In the case of multi-dimensional arrays, the incoming list must
- contain elements of type n-1 dimension. i.e. if <code>type</code> is
<code><jk>int</jk>[][]</code>
- then <code>list</code> must have entries of type
<code><jk>int</jk>[]</code>.</div>
+ In the case of multi-dimensional arrays, the incoming list must contain
elements of type n-1 dimension.
+ i.e. if <code>type</code> is <code><jk>int</jk>[][]</code> then
<code>list</code> must have entries of type
+ <code><jk>int</jk>[]</code>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - The type to convert to. Must be an array type.</dd>
@@ -780,8 +784,9 @@ extends <a href="../../../org/apache/juneau/Session.html"
title="class in org.ap
<ul class="blockList">
<li class="blockList">
<h4>toBeanMap</h4>
-<pre>public final <T> <a
href="../../../org/apache/juneau/BeanMap.html" title="class in
org.apache.juneau">BeanMap</a><T> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.686">toBeanMap</a>(T o)</pre>
+<pre>public final <T> <a
href="../../../org/apache/juneau/BeanMap.html" title="class in
org.apache.juneau">BeanMap</a><T> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.697">toBeanMap</a>(T o)</pre>
<div class="block">Wraps an object inside a <a
href="../../../org/apache/juneau/BeanMap.html" title="class in
org.apache.juneau"><code>BeanMap</code></a> object (i.e. a modifiable <a
href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true"
title="class or interface in java.util"><code>Map</code></a>).
+
<p>
If object is not a true bean, then throws a <a
href="../../../org/apache/juneau/BeanRuntimeException.html" title="class in
org.apache.juneau"><code>BeanRuntimeException</code></a> with an explanation of
why it's not a
bean.
@@ -807,7 +812,7 @@ extends <a href="../../../org/apache/juneau/Session.html"
title="class in org.ap
<ul class="blockList">
<li class="blockList">
<h4>isBean</h4>
-<pre>public final boolean <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.696">isBean</a>(<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true"
title="class or interface in java.lang">Object</a> o)</pre>
+<pre>public final boolean <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.707">isBean</a>(<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true"
title="class or interface in java.lang">Object</a> o)</pre>
<div class="block">Determines whether the specified object matches the
requirements on this context of being a bean.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
@@ -823,7 +828,7 @@ extends <a href="../../../org/apache/juneau/Session.html"
title="class in org.ap
<ul class="blockList">
<li class="blockList">
<h4>isBean</h4>
-<pre>public final boolean <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.708">isBean</a>(<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true"
title="class or interface in java.lang">Class</a><?> c)</pre>
+<pre>public final boolean <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.719">isBean</a>(<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true"
title="class or interface in java.lang">Class</a><?> c)</pre>
<div class="block">Determines whether the specified class matches the
requirements on this context of being a bean.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
@@ -841,11 +846,12 @@ extends <a href="../../../org/apache/juneau/Session.html"
title="class in org.ap
<ul class="blockList">
<li class="blockList">
<h4>toBeanMap</h4>
-<pre>public final <T> <a
href="../../../org/apache/juneau/BeanMap.html" title="class in
org.apache.juneau">BeanMap</a><T> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.736">toBeanMap</a>(T o,
+<pre>public final <T> <a
href="../../../org/apache/juneau/BeanMap.html" title="class in
org.apache.juneau">BeanMap</a><T> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.749">toBeanMap</a>(T o,
<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true"
title="class or interface in java.lang">Class</a><? super T> c)
throws <a
href="../../../org/apache/juneau/BeanRuntimeException.html" title="class in
org.apache.juneau">BeanRuntimeException</a></pre>
-<div class="block">Wraps an object inside a <a
href="../../../org/apache/juneau/BeanMap.html" title="class in
org.apache.juneau"><code>BeanMap</code></a> object (i.e.: a modifiable <a
href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true"
title="class or interface in java.util"><code>Map</code></a>)
- defined as a bean for one of its class, a super class, or an implemented
interface.
+<div class="block">Wraps an object inside a <a
href="../../../org/apache/juneau/BeanMap.html" title="class in
org.apache.juneau"><code>BeanMap</code></a> object (i.e.: a modifiable <a
href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true"
title="class or interface in java.util"><code>Map</code></a>) defined as a
bean for one of its
+ class, a super class, or an implemented interface.
+
<p>
If object is not a true bean, throws a <a
href="../../../org/apache/juneau/BeanRuntimeException.html" title="class in
org.apache.juneau"><code>BeanRuntimeException</code></a> with an explanation of
why it's not a bean.
@@ -868,8 +874,8 @@ extends <a href="../../../org/apache/juneau/Session.html"
title="class in org.ap
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/NullPointerException.html?is-external=true"
title="class or interface in java.lang">NullPointerException</a></code> - If
either parameter is null.</dd>
<dd><code><a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/IllegalArgumentException.html?is-external=true"
title="class or interface in java.lang">IllegalArgumentException</a></code> -
If the specified object is not an an instance of the specified class.</dd>
-<dd><code><a href="../../../org/apache/juneau/BeanRuntimeException.html"
title="class in org.apache.juneau">BeanRuntimeException</a></code> - If
specified object is not a bean according to the bean rules
- specified in this context class.</dd>
+<dd><code><a href="../../../org/apache/juneau/BeanRuntimeException.html"
title="class in org.apache.juneau">BeanRuntimeException</a></code> - If
specified object is not a bean according to the bean rules specified in this
context
+ class.</dd>
</dl>
</li>
</ul>
@@ -879,9 +885,10 @@ extends <a href="../../../org/apache/juneau/Session.html"
title="class in org.ap
<ul class="blockList">
<li class="blockList">
<h4>newBeanMap</h4>
-<pre>public final <T> <a
href="../../../org/apache/juneau/BeanMap.html" title="class in
org.apache.juneau">BeanMap</a><T> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.768">newBeanMap</a>(<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true"
title="class or interface in java.lang">Class</a><T> c)</pre>
+<pre>public final <T> <a
href="../../../org/apache/juneau/BeanMap.html" title="class in
org.apache.juneau">BeanMap</a><T> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.782">newBeanMap</a>(<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true"
title="class or interface in java.lang">Class</a><T> c)</pre>
<div class="block">Creates a new <a
href="../../../org/apache/juneau/BeanMap.html" title="class in
org.apache.juneau"><code>BeanMap</code></a> object (i.e. a modifiable <a
href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true"
title="class or interface in java.util"><code>Map</code></a>) of the given
class with uninitialized
property values.
+
<p>
If object is not a true bean, then throws a <a
href="../../../org/apache/juneau/BeanRuntimeException.html" title="class in
org.apache.juneau"><code>BeanRuntimeException</code></a> with an explanation of
why it's not a
bean.
@@ -907,17 +914,17 @@ extends <a href="../../../org/apache/juneau/Session.html"
title="class in org.ap
<ul class="blockList">
<li class="blockList">
<h4>newBeanMap</h4>
-<pre>public final <T> <a
href="../../../org/apache/juneau/BeanMap.html" title="class in
org.apache.juneau">BeanMap</a><T> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.782">newBeanMap</a>(<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true"
title="class or interface in java.lang">Object</a> outer,
+<pre>public final <T> <a
href="../../../org/apache/juneau/BeanMap.html" title="class in
org.apache.juneau">BeanMap</a><T> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.797">newBeanMap</a>(<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true"
title="class or interface in java.lang">Object</a> outer,
<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true"
title="class or interface in java.lang">Class</a><T> c)</pre>
-<div class="block">Same as <a
href="../../../org/apache/juneau/BeanSession.html#newBeanMap-java.lang.Class-"><code>newBeanMap(Class)</code></a>,
except used for instantiating inner member classes that must
- be instantiated within another class instance.</div>
+<div class="block">Same as <a
href="../../../org/apache/juneau/BeanSession.html#newBeanMap-java.lang.Class-"><code>newBeanMap(Class)</code></a>,
except used for instantiating inner member classes that must be instantiated
+ within another class instance.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>T</code> - The class of the object being wrapped.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>c</code> - The name of the class to create a new instance of.</dd>
<dd><code>outer</code> - If class is a member class, this is the instance of
the containing class.
- Should be <jk>null</jk> if not a member class.</dd>
+ Should be <jk>null</jk> if not a member class.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>A new instance of the class.</dd>
</dl>
@@ -929,10 +936,10 @@ extends <a href="../../../org/apache/juneau/Session.html"
title="class in org.ap
<ul class="blockList">
<li class="blockList">
<h4>newBean</h4>
-<pre>public final <T> T <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.807">newBean</a>(<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true"
title="class or interface in java.lang">Class</a><T> c)
+<pre>public final <T> T <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.822">newBean</a>(<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true"
title="class or interface in java.lang">Class</a><T> c)
throws <a
href="../../../org/apache/juneau/BeanRuntimeException.html" title="class in
org.apache.juneau">BeanRuntimeException</a></pre>
<div class="block">Creates a new empty bean of the specified type, except used
for instantiating inner member classes that must
- be instantiated within another class instance.
+ be instantiated within another class instance.
<h5 class='section'>Example:</h5>
<p class='bcode'>
@@ -957,18 +964,18 @@ extends <a href="../../../org/apache/juneau/Session.html"
title="class in org.ap
<ul class="blockList">
<li class="blockList">
<h4>newBean</h4>
-<pre>public final <T> T <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.822">newBean</a>(<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true"
title="class or interface in java.lang">Object</a> outer,
+<pre>public final <T> T <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.838">newBean</a>(<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true"
title="class or interface in java.lang">Object</a> outer,
<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true"
title="class or interface in java.lang">Class</a><T> c)
throws <a
href="../../../org/apache/juneau/BeanRuntimeException.html" title="class in
org.apache.juneau">BeanRuntimeException</a></pre>
-<div class="block">Same as <a
href="../../../org/apache/juneau/BeanSession.html#newBean-java.lang.Class-"><code>newBean(Class)</code></a>,
except used for instantiating inner member classes that must
- be instantiated within another class instance.</div>
+<div class="block">Same as <a
href="../../../org/apache/juneau/BeanSession.html#newBean-java.lang.Class-"><code>newBean(Class)</code></a>,
except used for instantiating inner member classes that must be instantiated
+ within another class instance.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
<dd><code>T</code> - The class type of the bean being created.</dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>c</code> - The class type of the bean being created.</dd>
<dd><code>outer</code> - If class is a member class, this is the instance of
the containing class.
- Should be <jk>null</jk> if not a member class.</dd>
+ Should be <jk>null</jk> if not a member class.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>A new bean object.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
@@ -982,7 +989,7 @@ extends <a href="../../../org/apache/juneau/Session.html"
title="class in org.ap
<ul class="blockList">
<li class="blockList">
<h4>getBeanMeta</h4>
-<pre>public final <T> <a
href="../../../org/apache/juneau/BeanMeta.html" title="class in
org.apache.juneau">BeanMeta</a><T> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.847">getBeanMeta</a>(<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true"
title="class or interface in java.lang">Class</a><T> c)</pre>
+<pre>public final <T> <a
href="../../../org/apache/juneau/BeanMeta.html" title="class in
org.apache.juneau">BeanMeta</a><T> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.864">getBeanMeta</a>(<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true"
title="class or interface in java.lang">Class</a><T> c)</pre>
<div class="block">Returns the <a
href="../../../org/apache/juneau/BeanMeta.html" title="class in
org.apache.juneau"><code>BeanMeta</code></a> class for the specified
class.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
@@ -1001,7 +1008,7 @@ extends <a href="../../../org/apache/juneau/Session.html"
title="class in org.ap
<ul class="blockList">
<li class="blockList">
<h4>getClassMeta</h4>
-<pre>public final <T> <a
href="../../../org/apache/juneau/ClassMeta.html" title="class in
org.apache.juneau">ClassMeta</a><T> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.860">getClassMeta</a>(<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true"
title="class or interface in java.lang">Class</a><T> c)</pre>
+<pre>public final <T> <a
href="../../../org/apache/juneau/ClassMeta.html" title="class in
org.apache.juneau">ClassMeta</a><T> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.877">getClassMeta</a>(<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true"
title="class or interface in java.lang">Class</a><T> c)</pre>
<div class="block">Returns a <code>ClassMeta</code> wrapper around a <a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true"
title="class or interface in java.lang"><code>Class</code></a> object.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
@@ -1019,16 +1026,19 @@ extends <a
href="../../../org/apache/juneau/Session.html" title="class in org.ap
<ul class="blockList">
<li class="blockList">
<h4>getClassMeta</h4>
-<pre>public final <T> <a
href="../../../org/apache/juneau/ClassMeta.html" title="class in
org.apache.juneau">ClassMeta</a><T> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.901">getClassMeta</a>(<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true"
title="class or interface in java.lang.reflect">Type</a> type,
+<pre>public final <T> <a
href="../../../org/apache/juneau/ClassMeta.html" title="class in
org.apache.juneau">ClassMeta</a><T> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.923">getClassMeta</a>(<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true"
title="class or interface in java.lang.reflect">Type</a> type,
<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true"
title="class or interface in java.lang.reflect">Type</a>... args)</pre>
<div class="block">Used to resolve <code>ClassMetas</code> of type
<code>Collection</code> and <code>Map</code> that have
<code>ClassMeta</code> values that themselves could be collections or maps.
+
<p>
<code>Collection</code> meta objects are assumed to be followed by zero or
one meta objects indicating the
element type.
+
<p>
<code>Map</code> meta objects are assumed to be followed by zero or two meta
objects indicating the key and value
types.
+
<p>
The array can be arbitrarily long to indicate arbitrarily complex data
structures.
@@ -1067,8 +1077,10 @@ extends <a
href="../../../org/apache/juneau/Session.html" title="class in org.ap
<ul class="blockList">
<li class="blockList">
<h4>getArgsClassMeta</h4>
-<pre>public final <a href="../../../org/apache/juneau/ClassMeta.html"
title="class in org.apache.juneau">ClassMeta</a><<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true"
title="class or interface in java.lang">Object</a>[]> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.912">getArgsClassMeta</a>(<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true"
title="class or interface in java.lang.reflect">Type</a>[] classes)</pre>
+<pre>public final <a href="../../../org/apache/juneau/ClassMeta.html"
title="class in org.apache.juneau">ClassMeta</a><<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true"
title="class or interface in java.lang">Object</a>[]> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.936">getArgsClassMeta</a>(<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true"
title="class or interface in java.lang.reflect">Type</a>[] classes)</pre>
<div class="block">Given an array of <a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true"
title="class or interface in java.lang.reflect"><code>Type</code></a> objects,
returns a <a href="../../../org/apache/juneau/ClassMeta.html" title="class in
org.apache.juneau"><code>ClassMeta</code></a> representing those arguments.
+
+ <p>
Constructs a new meta on each call.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
@@ -1086,7 +1098,7 @@ extends <a href="../../../org/apache/juneau/Session.html"
title="class in org.ap
<ul class="blockList">
<li class="blockList">
<h4>getClassMetaForObject</h4>
-<pre>public final <T> <a
href="../../../org/apache/juneau/ClassMeta.html" title="class in
org.apache.juneau">ClassMeta</a><T> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.927">getClassMetaForObject</a>(T o)</pre>
+<pre>public final <T> <a
href="../../../org/apache/juneau/ClassMeta.html" title="class in
org.apache.juneau">ClassMeta</a><T> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.951">getClassMetaForObject</a>(T o)</pre>
<div class="block">Shortcut for calling
<code>getClassMeta(o.getClass())</code>.</div>
<dl>
<dt><span class="paramLabel">Type Parameters:</span></dt>
@@ -1104,12 +1116,12 @@ extends <a
href="../../../org/apache/juneau/Session.html" title="class in org.ap
<ul class="blockList">
<li class="blockList">
<h4>getBeanTypePropertyName</h4>
-<pre>public final <a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true"
title="class or interface in java.lang">String</a> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.940">getBeanTypePropertyName</a>(<a
href="../../../org/apache/juneau/ClassMeta.html" title="class in
org.apache.juneau">ClassMeta</a> cm)</pre>
+<pre>public final <a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true"
title="class or interface in java.lang">String</a> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.965">getBeanTypePropertyName</a>(<a
href="../../../org/apache/juneau/ClassMeta.html" title="class in
org.apache.juneau">ClassMeta</a> cm)</pre>
<div class="block">Returns the type property name as defined by <a
href="../../../org/apache/juneau/BeanContext.html#BEAN_beanTypePropertyName"><code>BeanContext.BEAN_beanTypePropertyName</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>cm</code> - The class meta of the type we're trying to resolve the
type name for.
- Can be <jk>null</jk>.</dd>
+ Can be <jk>null</jk>.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The type property name. Never <jk>null</jk>.</dd>
</dl>
@@ -1121,7 +1133,7 @@ extends <a href="../../../org/apache/juneau/Session.html"
title="class in org.ap
<ul class="blockList">
<li class="blockList">
<h4>getBeanRegistry</h4>
-<pre>public final <a href="../../../org/apache/juneau/BeanRegistry.html"
title="class in org.apache.juneau">BeanRegistry</a> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.950">getBeanRegistry</a>()</pre>
+<pre>public final <a href="../../../org/apache/juneau/BeanRegistry.html"
title="class in org.apache.juneau">BeanRegistry</a> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.975">getBeanRegistry</a>()</pre>
<div class="block">Returns the bean registry defined in this bean context
defined by <a
href="../../../org/apache/juneau/BeanContext.html#BEAN_beanDictionary"><code>BeanContext.BEAN_beanDictionary</code></a>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
@@ -1135,8 +1147,9 @@ extends <a href="../../../org/apache/juneau/Session.html"
title="class in org.ap
<ul class="blockList">
<li class="blockList">
<h4>getStringBuilder</h4>
-<pre>public final <a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/StringBuilder.html?is-external=true"
title="class or interface in java.lang">StringBuilder</a> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.961">getStringBuilder</a>()</pre>
+<pre>public final <a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/StringBuilder.html?is-external=true"
title="class or interface in java.lang">StringBuilder</a> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.987">getStringBuilder</a>()</pre>
<div class="block">Creates a reusable <a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/StringBuilder.html?is-external=true"
title="class or interface in java.lang"><code>StringBuilder</code></a> object
from an internal pool.
+
<p>
String builders are returned to the pool by calling <a
href="../../../org/apache/juneau/BeanSession.html#returnStringBuilder-java.lang.StringBuilder-"><code>returnStringBuilder(StringBuilder)</code></a>.</div>
<dl>
@@ -1151,7 +1164,7 @@ extends <a href="../../../org/apache/juneau/Session.html"
title="class in org.ap
<ul class="blockList">
<li class="blockList">
<h4>returnStringBuilder</h4>
-<pre>public final void <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.972">returnStringBuilder</a>(<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/StringBuilder.html?is-external=true"
title="class or interface in java.lang">StringBuilder</a> sb)</pre>
+<pre>public final void <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.998">returnStringBuilder</a>(<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/StringBuilder.html?is-external=true"
title="class or interface in java.lang">StringBuilder</a> sb)</pre>
<div class="block">Returns a <a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/StringBuilder.html?is-external=true"
title="class or interface in java.lang"><code>StringBuilder</code></a> object
back into the internal reuse pool.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
@@ -1165,14 +1178,15 @@ extends <a
href="../../../org/apache/juneau/Session.html" title="class in org.ap
<ul class="blockList">
<li class="blockList">
<h4>object</h4>
-<pre>public final <a href="../../../org/apache/juneau/ClassMeta.html"
title="class in org.apache.juneau">ClassMeta</a><<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true"
title="class or interface in java.lang">Object</a>> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.990">object</a>()</pre>
+<pre>public final <a href="../../../org/apache/juneau/ClassMeta.html"
title="class in org.apache.juneau">ClassMeta</a><<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true"
title="class or interface in java.lang">Object</a>> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.1017">object</a>()</pre>
<div class="block">Returns a reusable <a
href="../../../org/apache/juneau/ClassMeta.html" title="class in
org.apache.juneau"><code>ClassMeta</code></a> representation for the class
<code>Object</code>.
+
<p>
- This <code>ClassMeta</code> is often used to represent "any object type" when
an object type
- is not known.
+ This <code>ClassMeta</code> is often used to represent "any object type" when
an object type is not known.
+
<p>
- This method is identical to calling
<code>getClassMeta(Object.<jk>class</jk>)</code> but uses
- a cached copy to avoid a hashmap lookup.</div>
+ This method is identical to calling
<code>getClassMeta(Object.<jk>class</jk>)</code> but uses a cached copy to
+ avoid a hashmap lookup.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The <a href="../../../org/apache/juneau/ClassMeta.html" title="class in
org.apache.juneau"><code>ClassMeta</code></a> object associated with the
<code>Object</code> class.</dd>
@@ -1185,13 +1199,15 @@ extends <a
href="../../../org/apache/juneau/Session.html" title="class in org.ap
<ul class="blockList">
<li class="blockList">
<h4>string</h4>
-<pre>public final <a href="../../../org/apache/juneau/ClassMeta.html"
title="class in org.apache.juneau">ClassMeta</a><<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true"
title="class or interface in java.lang">String</a>> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.1004">string</a>()</pre>
+<pre>public final <a href="../../../org/apache/juneau/ClassMeta.html"
title="class in org.apache.juneau">ClassMeta</a><<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true"
title="class or interface in java.lang">String</a>> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.1033">string</a>()</pre>
<div class="block">Returns a reusable <a
href="../../../org/apache/juneau/ClassMeta.html" title="class in
org.apache.juneau"><code>ClassMeta</code></a> representation for the class
<code>String</code>.
+
<p>
This <code>ClassMeta</code> is often used to represent key types in maps.
+
<p>
- This method is identical to calling
<code>getClassMeta(String.<jk>class</jk>)</code> but uses
- a cached copy to avoid a hashmap lookup.</div>
+ This method is identical to calling
<code>getClassMeta(String.<jk>class</jk>)</code> but uses a cached copy to
+ avoid a hashmap lookup.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The <a href="../../../org/apache/juneau/ClassMeta.html" title="class in
org.apache.juneau"><code>ClassMeta</code></a> object associated with the
<code>String</code> class.</dd>
@@ -1204,13 +1220,15 @@ extends <a
href="../../../org/apache/juneau/Session.html" title="class in org.ap
<ul class="blockList">
<li class="blockList">
<h4>_class</h4>
-<pre>public final <a href="../../../org/apache/juneau/ClassMeta.html"
title="class in org.apache.juneau">ClassMeta</a><<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true"
title="class or interface in java.lang">Class</a>> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.1018">_class</a>()</pre>
+<pre>public final <a href="../../../org/apache/juneau/ClassMeta.html"
title="class in org.apache.juneau">ClassMeta</a><<a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true"
title="class or interface in java.lang">Class</a>> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.1049">_class</a>()</pre>
<div class="block">Returns a reusable <a
href="../../../org/apache/juneau/ClassMeta.html" title="class in
org.apache.juneau"><code>ClassMeta</code></a> representation for the class
<code>Class</code>.
+
<p>
This <code>ClassMeta</code> is often used to represent key types in maps.
+
<p>
- This method is identical to calling
<code>getClassMeta(Class.<jk>class</jk>)</code> but uses
- a cached copy to avoid a hashmap lookup.</div>
+ This method is identical to calling
<code>getClassMeta(Class.<jk>class</jk>)</code> but uses a cached copy to
+ avoid a hashmap lookup.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The <a href="../../../org/apache/juneau/ClassMeta.html" title="class in
org.apache.juneau"><code>ClassMeta</code></a> object associated with the
<code>String</code> class.</dd>
@@ -1223,7 +1241,7 @@ extends <a href="../../../org/apache/juneau/Session.html"
title="class in org.ap
<ul class="blockList">
<li class="blockList">
<h4>getClassLoader</h4>
-<pre>public final <a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/ClassLoader.html?is-external=true"
title="class or interface in java.lang">ClassLoader</a> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.1027">getClassLoader</a>()</pre>
+<pre>public final <a
href="http://docs.oracle.com/javase/7/docs/api/java/lang/ClassLoader.html?is-external=true"
title="class or interface in java.lang">ClassLoader</a> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.1058">getClassLoader</a>()</pre>
<div class="block">Returns the classloader associated with this bean
context.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
@@ -1237,8 +1255,9 @@ extends <a href="../../../org/apache/juneau/Session.html"
title="class in org.ap
<ul class="blockList">
<li class="blockList">
<h4>getMediaType</h4>
-<pre>public final <a
href="../../../org/apache/juneau/http/MediaType.html" title="class in
org.apache.juneau.http">MediaType</a> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.1038">getMediaType</a>()</pre>
+<pre>public final <a
href="../../../org/apache/juneau/http/MediaType.html" title="class in
org.apache.juneau.http">MediaType</a> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.1070">getMediaType</a>()</pre>
<div class="block">Returns the media type specified for this session.
+
<p>
For example, <js>"application/json"</js>.</div>
<dl>
@@ -1253,7 +1272,7 @@ extends <a href="../../../org/apache/juneau/Session.html"
title="class in org.ap
<ul class="blockList">
<li class="blockList">
<h4>asMap</h4>
-<pre>public final <a href="../../../org/apache/juneau/ObjectMap.html"
title="class in org.apache.juneau">ObjectMap</a> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.1043">asMap</a>()</pre>
+<pre>public final <a href="../../../org/apache/juneau/ObjectMap.html"
title="class in org.apache.juneau">ObjectMap</a> <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.1075">asMap</a>()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from
class: <code><a
href="../../../org/apache/juneau/Session.html#asMap--">Session</a></code></span></div>
<div class="block">Returns the properties defined on this bean context as a
simple map for debugging purposes.</div>
<dl>
@@ -1270,7 +1289,7 @@ extends <a href="../../../org/apache/juneau/Session.html"
title="class in org.ap
<ul class="blockListLast">
<li class="blockList">
<h4>close</h4>
-<pre>public boolean <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.1053">close</a>()
+<pre>public boolean <a
href="../../../src-html/org/apache/juneau/BeanSession.html#line.1085">close</a>()
throws <a
href="../../../org/apache/juneau/BeanRuntimeException.html" title="class in
org.apache.juneau">BeanRuntimeException</a></pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from
class: <code><a
href="../../../org/apache/juneau/Session.html#close--">Session</a></code></span></div>
<div class="block">Perform cleanup on this context object if necessary.</div>