http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/112b098d/content/api-documentation/org/apache/juneau/BeanContext.html ---------------------------------------------------------------------- diff --git a/content/api-documentation/org/apache/juneau/BeanContext.html b/content/api-documentation/org/apache/juneau/BeanContext.html new file mode 100644 index 0000000..4362678 --- /dev/null +++ b/content/api-documentation/org/apache/juneau/BeanContext.html @@ -0,0 +1,2468 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<!-- NewPage --> +<html lang="en"> +<head> +<!-- Generated by javadoc --> +<title>BeanContext (Juneau)</title> +<link rel="stylesheet" type="text/css" href="../../../javadoc.css" title="Style"> +<script type="text/javascript" src="../../../script.js"></script> +</head> +<body> +<script type="text/javascript"><!-- + try { + if (location.href.indexOf('is-external=true') == -1) { + parent.document.title="BeanContext (Juneau)"; + } + } + catch(err) { + } +//--> +var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":9,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10}; +var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; +var altColor = "altColor"; +var rowColor = "rowColor"; +var tableTab = "tableTab"; +var activeTableTab = "activeTableTab"; +</script> +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> +<!-- ========= START OF TOP NAVBAR ======= --> +<div class="topNav"><a name="navbar.top"> +<!-- --> +</a> +<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> +<a name="navbar.top.firstrow"> +<!-- --> +</a> +<ul class="navList" title="Navigation"> +<li><a href="../../../overview-summary.html">Overview</a></li> +<li><a href="package-summary.html">Package</a></li> +<li class="navBarCell1Rev">Class</li> +<li><a href="class-use/BeanContext.html">Use</a></li> +<li><a href="package-tree.html">Tree</a></li> +<li><a href="../../../deprecated-list.html">Deprecated</a></li> +<li><a href="../../../index-all.html">Index</a></li> +<li><a href="../../../help-doc.html">Help</a></li> +</ul> +</div> +<div class="subNav"> +<ul class="navList"> +<li>Prev Class</li> +<li><a href="../../../org/apache/juneau/BeanMap.html" title="class in org.apache.juneau"><span class="typeNameLink">Next Class</span></a></li> +</ul> +<ul class="navList"> +<li><a href="../../../index.html?org/apache/juneau/BeanContext.html" target="_top">Frames</a></li> +<li><a href="BeanContext.html" target="_top">No Frames</a></li> +</ul> +<ul class="navList" id="allclasses_navbar_top"> +<li><a href="../../../allclasses-noframe.html">All Classes</a></li> +</ul> +<div> +<script type="text/javascript"><!-- + allClassesLink = document.getElementById("allclasses_navbar_top"); + if(window==top) { + allClassesLink.style.display = "block"; + } + else { + allClassesLink.style.display = "none"; + } + //--> +</script> +</div> +<div> +<ul class="subNavList"> +<li>Summary: </li> +<li>Nested | </li> +<li><a href="#field.summary">Field</a> | </li> +<li><a href="#constructor.summary">Constr</a> | </li> +<li><a href="#method.summary">Method</a></li> +</ul> +<ul class="subNavList"> +<li>Detail: </li> +<li><a href="#field.detail">Field</a> | </li> +<li><a href="#constructor.detail">Constr</a> | </li> +<li><a href="#method.detail">Method</a></li> +</ul> +</div> +<a name="skip.navbar.top"> +<!-- --> +</a></div> +<!-- ========= END OF TOP NAVBAR ========= --> +<!-- ======== START OF CLASS DATA ======== --> +<div class="header"> +<div class="subTitle">org.apache.juneau</div> +<h2 title="Class BeanContext" class="title">Class BeanContext</h2> +</div> +<div class="contentContainer"> +<ul class="inheritance"> +<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> +<li> +<ul class="inheritance"> +<li><a href="../../../org/apache/juneau/Context.html" title="class in org.apache.juneau">org.apache.juneau.Context</a></li> +<li> +<ul class="inheritance"> +<li>org.apache.juneau.BeanContext</li> +</ul> +</li> +</ul> +</li> +</ul> +<div class="description"> +<ul class="blockList"> +<li class="blockList"> +<hr> +<br> +<pre>public class <a href="../../../src-html/org/apache/juneau/BeanContext.html#line.192">BeanContext</a> +extends <a href="../../../org/apache/juneau/Context.html" title="class in org.apache.juneau">Context</a></pre> +<div class="block">Core class of the Juneau architecture. + <p> + This class servers multiple purposes: + <ul class='spaced-list'> + <li>Provides the ability to wrap beans inside <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> interfaces. + <li>Serves as a repository for metadata on POJOs, such as associated <a href="../../../org/apache/juneau/transform/Transform.html" title="class in org.apache.juneau.transform"><code>transforms</code></a>, <a href="../../../org/apache/juneau/PropertyNamer.html" title="interface in org.apache.juneau"><code>property namers</code></a>, etc... + which are used to tailor how POJOs are serialized and parsed. + <li>Serves as a common utility class for all <a href="../../../org/apache/juneau/serializer/Serializer.html" title="class in org.apache.juneau.serializer"><code>Serializers</code></a> and <a href="../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser"><code>Parsers</code></a> + for serializing and parsing Java beans. + </ul> + + + <h5 class='topic'>Bean Contexts</h5> + <p> + Typically, it will be sufficient to use the existing <a href="../../../org/apache/juneau/BeanContext.html#DEFAULT"><code>DEFAULT</code></a> contexts for creating + bean maps. However, if you want to tweak any of the settings on the context, you must + either clone the default context or create a new one from scratch (whichever is simpler for you). + You'll notice that this context class uses a fluent interface for defining settings. + <p> + Bean contexts are created by <a href="../../../org/apache/juneau/ContextFactory.html" title="class in org.apache.juneau"><code>context factories</code></a>. + The settings on a bean context are fixed at the point they are created by the factory. + + + <h5 class='topic'>BeanContext settings</h5> + <code>BeanContexts</code> have several settings that can be used to tweak behavior on how beans are handled. + These are denoted as the static <jsf>BEAN_*</jsf> fields on this class. + <p> + Some settings (e.g. <a href="../../../org/apache/juneau/BeanContext.html#BEAN_beansRequireDefaultConstructor"><code>BEAN_beansRequireDefaultConstructor</code></a>) are used to differentiate between bean and non-bean classes. + Attempting to create a bean map around one of these objects will throw a <a href="../../../org/apache/juneau/BeanRuntimeException.html" title="class in org.apache.juneau"><code>BeanRuntimeException</code></a>. + The purpose for this behavior is so that the serializers can identify these non-bean classes and convert them to plain strings using the <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang"><code>Object.toString()</code></a> method. + <p> + Some settings (e.g. <a href="../../../org/apache/juneau/BeanContext.html#BEAN_beanFieldVisibility"><code>BEAN_beanFieldVisibility</code></a>) are used to determine what kinds of properties are detected on beans. + <p> + Some settings (e.g. <a href="../../../org/apache/juneau/BeanContext.html#BEAN_beanMapPutReturnsOldValue"><code>BEAN_beanMapPutReturnsOldValue</code></a>) change the runtime behavior of bean maps. + <p> + Settings are specified using the <a href="../../../org/apache/juneau/ContextFactory.html#setProperty-java.lang.String-java.lang.Object-"><code>ContextFactory.setProperty(String, Object)</code></a> method and related convenience methods. + + <h6 class='topic'>Examples</h6> + <p class='bcode'> + <jc>// Construct a context from scratch.</jc> + BeanContext beanContext = ContextFactory.<jsm>create</jsm>() + .setProperty(BeanContext.<jsf>BEAN_beansRequireDefaultConstructor</jsf>, <jk>true</jk>) + .addNotBeanClasses(Foo.<jk>class</jk>) + .getBeanContext(); + + <jc>// Clone an existing context factory.</jc> + BeanContext beanContext = ContextFactory.<jsm>create</jsm>(otherConfig) + .setProperty(BeanContext.<jsf>BEAN_beansRequireDefaultConstructor</jsf>, <jk>true</jk>) + .addNotBeanClasses(Foo.<jk>class</jk>) + .getBeanContext(); + </p> + + + <h5 class='topic'>Bean Maps</h5> + <p> + <a href="../../../org/apache/juneau/BeanMap.html" title="class in org.apache.juneau"><code>BeanMaps</code></a> are wrappers around Java beans that allow properties to be retrieved and + set using the common <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true#put-K-V-" title="class or interface in java.util"><code>Map.put(Object,Object)</code></a> and <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true#get-java.lang.Object-" title="class or interface in java.util"><code>Map.get(Object)</code></a> methods.<br> + <br> + Bean maps are created in two ways... + <ol> + <li> <a href="../../../org/apache/juneau/BeanContext.html#forBean-T-"><code>BeanContext.forBean()</code></a> - Wraps an existing bean inside a <code>Map</code> wrapper. + <li> <a href="../../../org/apache/juneau/BeanContext.html#newBeanMap-java.lang.Class-"><code>BeanContext.newInstance()</code></a> - Create a new bean instance wrapped in a <code>Map</code> wrapper. + </ol> + + + <h6 class='topic'>Examples</h6> + <p class='bcode'> + <jc>// A sample bean class</jc> + <jk>public class</jk> Person { + <jk>public</jk> String getName(); + <jk>public void</jk> setName(String name); + <jk>public int</jk> getAge(); + <jk>public void</jk> setAge(<jk>int</jk> age); + } + + <jc>// Wrap an existing bean in a new bean map</jc> + BeanMap<Person> m1 = BeanContext.<jsf>DEFAULT</jsf>.forBean(<jk>new</jk> Person()); + m1.put(<js>"name"</js>, <js>"John Smith"</js>); + m1.put(<js>"age"</js>, 45); + + <jc>// Create a new bean instance wrapped in a new bean map</jc> + BeanMap<Person> m2 = BeanContext.<jsf>DEFAULT</jsf>.newInstance(Person.<jk>class</jk>); + m2.put(<js>"name"</js>, <js>"John Smith"</js>); + m2.put(<js>"age"</js>, 45); + Person p = m2.getBean(); <jc>// Get the bean instance that was created.</jc> + </p> + + + <h5 class='topic'>Bean Annotations</h5> + <p> + This package contains annotations that can be applied to + class definitions to override what properties are detected on a bean. + <h6 class='topic'>Examples</h6> + <p class='bcode'> + <jc>// Bean class definition where only property 'name' is detected.</jc> + <ja>@Bean</ja>(properties={<js>"name"</js>}) + <jk>public class</jk> Person { + <jk>public</jk> String getName(); + <jk>public void</jk> setName(String name); + <jk>public int</jk> getAge(); + <jk>public void</jk> setAge(<jk>int</jk> age); + } + <p> + See <a href="../../../org/apache/juneau/annotation/Bean.html" title="annotation in org.apache.juneau.annotation"><code>@Bean</code></a> and <a href="../../../org/apache/juneau/annotation/BeanProperty.html" title="annotation in org.apache.juneau.annotation"><code>@BeanProperty</code></a> for more information. + + + <h5 class='topic'>Beans with read-only properties</h5> + <p> + Bean maps can also be defined on top of beans with read-only properties by adding a + <a href="../../../org/apache/juneau/annotation/BeanConstructor.html" title="annotation in org.apache.juneau.annotation"><code>@BeanConstructor</code></a> annotation to one of the constructors on the + bean class. This will allow read-only properties to be set through constructor arguments. + <p> + When the <code>@BeanConstructor</code> annotation is present, bean instantiation is delayed until the call to <a href="../../../org/apache/juneau/BeanMap.html#getBean--"><code>BeanMap.getBean()</code></a>. + Until then, bean property values are stored in a local cache until <code>getBean()</code> is called. + Because of this additional caching step, parsing into read-only beans tends to be slower and use + more memory than parsing into beans with writable properties. + <p> + Attempting to call <a href="../../../org/apache/juneau/BeanMap.html#put-java.lang.String-java.lang.Object-"><code>BeanMap.put(String,Object)</code></a> on a read-only property after calling <a href="../../../org/apache/juneau/BeanMap.html#getBean--"><code>BeanMap.getBean()</code></a> + will result in a <a href="../../../org/apache/juneau/BeanRuntimeException.html" title="class in org.apache.juneau"><code>BeanRuntimeException</code></a> being thrown. + Multiple calls to <a href="../../../org/apache/juneau/BeanMap.html#getBean--"><code>BeanMap.getBean()</code></a> will return the same bean instance. + <p> + Beans can be defined with a combination of read-only and read-write properties. + <p> + See <a href="../../../org/apache/juneau/annotation/BeanConstructor.html" title="annotation in org.apache.juneau.annotation"><code>@BeanConstructor</code></a> for more information. + + + <h5 class='topic'>Transforms</h5> + <p> + <a href="../../../org/apache/juneau/transform/Transform.html" title="class in org.apache.juneau.transform"><code>Transforms</code></a> are used to tailor how beans and non-beans are handled.<br> + There are two subclasses of transforms: + <ol class='spaced-list'> + <li><a href="../../../org/apache/juneau/transform/BeanTransform.html" title="class in org.apache.juneau.transform"><code>BeanTransform</code></a> - Allows you to tailor handling of bean classes. + This class can be considered a programmatic equivalent to the <a href="../../../org/apache/juneau/annotation/Bean.html" title="annotation in org.apache.juneau.annotation"><code>Bean</code></a> annotation when + annotating classes are not possible (e.g. you don't have access to the source). + <li><a href="../../../org/apache/juneau/transform/PojoTransform.html" title="class in org.apache.juneau.transform"><code>PojoTransform</code></a> - Allows you to convert objects to serializable forms. + </ol> + <p> + See <a href="../../../org/apache/juneau/transform/package-summary.html"><code>org.apache.juneau.transform</code></a> for more information. + + + <h5 class='topic'>ClassMetas</h5> + <p> + The <a href="../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau"><code>ClassMeta</code></a> class is a wrapper around <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 that provides cached information + about that class (e.g. whether it's a <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> or <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util"><code>Collection</code></a> or bean). + <p> + As a general rule, it's best to reuse bean contexts (and therefore serializers and parsers too) + whenever possible since it takes some time to populate the internal <code>ClassMeta</code> object cache. + By reusing bean contexts, the class type metadata only needs to be calculated once which significantly + improves performance. + <p> + See <a href="../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau"><code>ClassMeta</code></a> for more information.</div> +<dl> +<dt><span class="simpleTagLabel">Author:</span></dt> +<dd>Barry M. Caceres, James Bognar ([email protected])</dd> +</dl> +</li> +</ul> +</div> +<div class="summary"> +<ul class="blockList"> +<li class="blockList"> +<!-- =========== FIELD SUMMARY =========== --> +<ul class="blockList"> +<li class="blockList"><a name="field.summary"> +<!-- --> +</a> +<h3>Field Summary</h3> +<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> +<caption><span>Fields</span><span class="tabEnd"> </span></caption> +<tr> +<th class="colFirst" scope="col">Modifier and Type</th> +<th class="colLast" scope="col">Field and Description</th> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static <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></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#BEAN_beanClassVisibility">BEAN_beanClassVisibility</a></span></code> +<div class="block">Look for bean classes with the specified minimum visibility (<a href="../../../org/apache/juneau/Visibility.html" title="enum in org.apache.juneau"><code>Visibility</code></a>, default=<a href="../../../org/apache/juneau/Visibility.html#PUBLIC"><code>Visibility.PUBLIC</code></a>).</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static <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></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#BEAN_beanConstructorVisibility">BEAN_beanConstructorVisibility</a></span></code> +<div class="block">Look for bean constructors with the specified minimum visibility (<a href="../../../org/apache/juneau/Visibility.html" title="enum in org.apache.juneau"><code>Visibility</code></a>, default=<a href="../../../org/apache/juneau/Visibility.html#PUBLIC"><code>Visibility.PUBLIC</code></a>).</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static <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></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#BEAN_beanFieldVisibility">BEAN_beanFieldVisibility</a></span></code> +<div class="block">Look for bean fields with the specified minimum visibility (<a href="../../../org/apache/juneau/Visibility.html" title="enum in org.apache.juneau"><code>Visibility</code></a>, default=<a href="../../../org/apache/juneau/Visibility.html#PUBLIC"><code>Visibility.PUBLIC</code></a>).</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static <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></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#BEAN_beanMapPutReturnsOldValue">BEAN_beanMapPutReturnsOldValue</a></span></code> +<div class="block">Put returns old value (<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang"><code>Boolean</code></a>, default=<jk>false</jk>).</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static <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></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#BEAN_beansRequireDefaultConstructor">BEAN_beansRequireDefaultConstructor</a></span></code> +<div class="block">Require no-arg constructor (<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang"><code>Boolean</code></a>, default=<jk>false</jk>).</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static <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></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#BEAN_beansRequireSerializable">BEAN_beansRequireSerializable</a></span></code> +<div class="block">Require <a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io"><code>Serializable</code></a> interface (<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang"><code>Boolean</code></a>, default=<jk>false</jk>).</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static <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></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#BEAN_beansRequireSettersForGetters">BEAN_beansRequireSettersForGetters</a></span></code> +<div class="block">Require setters for getters (<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang"><code>Boolean</code></a>, default=<jk>false</jk>).</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static <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></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#BEAN_beansRequireSomeProperties">BEAN_beansRequireSomeProperties</a></span></code> +<div class="block">Require some properties (<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang"><code>Boolean</code></a>, default=<jk>true</jk>).</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static <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></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#BEAN_defaultParser">BEAN_defaultParser</a></span></code> +<div class="block">Specifies the default parser to use when converting <code>Strings</code> to POJOs in the <a href="../../../org/apache/juneau/BeanContext.html#convertToType-java.lang.Object-java.lang.Class-"><code>convertToType(Object, Class)</code></a> method (<code>Class</code>).</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static <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></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#BEAN_ignoreInvocationExceptionsOnGetters">BEAN_ignoreInvocationExceptionsOnGetters</a></span></code> +<div class="block">Ignore invocation errors on getters (<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang"><code>Boolean</code></a>, default=<jk>false</jk>).</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static <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></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#BEAN_ignoreInvocationExceptionsOnSetters">BEAN_ignoreInvocationExceptionsOnSetters</a></span></code> +<div class="block">Ignore invocation errors on setters (<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang"><code>Boolean</code></a>, default=<jk>false</jk>).</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static <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></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#BEAN_ignorePropertiesWithoutSetters">BEAN_ignorePropertiesWithoutSetters</a></span></code> +<div class="block">Ignore properties without setters (<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang"><code>Boolean</code></a>, default=<jk>true</jk>).</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static <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></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#BEAN_ignoreUnknownBeanProperties">BEAN_ignoreUnknownBeanProperties</a></span></code> +<div class="block">Ignore unknown properties (<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang"><code>Boolean</code></a>, default=<jk>false</jk>).</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static <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></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#BEAN_ignoreUnknownNullBeanProperties">BEAN_ignoreUnknownNullBeanProperties</a></span></code> +<div class="block">Ignore unknown properties with null values (<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang"><code>Boolean</code></a>, default=<jk>true</jk>).</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static <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></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#BEAN_implClasses">BEAN_implClasses</a></span></code> +<div class="block">Specifies implementation classes for an interface or abstract class (<code>Map<Class,Class></code>).</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static <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></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#BEAN_implClasses_put">BEAN_implClasses_put</a></span></code> +<div class="block">Adds a new map entry to the <a href="../../../org/apache/juneau/BeanContext.html#BEAN_implClasses"><code>BEAN_implClasses</code></a> property.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static <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></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#BEAN_methodVisibility">BEAN_methodVisibility</a></span></code> +<div class="block">Look for bean methods with the specified minimum visibility (<a href="../../../org/apache/juneau/Visibility.html" title="enum in org.apache.juneau"><code>Visibility</code></a>, default=<a href="../../../org/apache/juneau/Visibility.html#PUBLIC"><code>Visibility.PUBLIC</code></a>).</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static <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></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#BEAN_notBeanClasses">BEAN_notBeanClasses</a></span></code> +<div class="block">An explicit list of Java classes to be excluded from consideration as being beans (<code>Set<Class></code>).</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static <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></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#BEAN_notBeanClasses_add">BEAN_notBeanClasses_add</a></span></code> +<div class="block">Add to the list of packages whose classes should not be considered beans.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static <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></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#BEAN_notBeanClasses_remove">BEAN_notBeanClasses_remove</a></span></code> +<div class="block">Remove from the list of packages whose classes should not be considered beans.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static <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></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#BEAN_notBeanPackages">BEAN_notBeanPackages</a></span></code> +<div class="block">List of packages whose classes should not be considered beans (<code>Set<String></code>).</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static <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></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#BEAN_notBeanPackages_add">BEAN_notBeanPackages_add</a></span></code> +<div class="block">Add to the list of packages whose classes should not be considered beans.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static <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></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#BEAN_notBeanPackages_remove">BEAN_notBeanPackages_remove</a></span></code> +<div class="block">Remove from the list of packages whose classes should not be considered beans.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static <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></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#BEAN_sortProperties">BEAN_sortProperties</a></span></code> +<div class="block">Sort bean properties in alphabetical order (<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang"><code>Boolean</code></a>, default=<jk>false</jk>).</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static <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></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#BEAN_transforms">BEAN_transforms</a></span></code> +<div class="block">List of transform classes on the bean context (<code>List<Class></code>).</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static <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></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#BEAN_transforms_add">BEAN_transforms_add</a></span></code> +<div class="block">Add to the list of transform classes.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static <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></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#BEAN_transforms_remove">BEAN_transforms_remove</a></span></code> +<div class="block">Remove from the list of transform classes.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static <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></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#BEAN_useInterfaceProxies">BEAN_useInterfaceProxies</a></span></code> +<div class="block">Use interface proxies (<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang"><code>Boolean</code></a>, default=<jk>true</jk>).</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static <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></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#BEAN_useJavaBeanIntrospector">BEAN_useJavaBeanIntrospector</a></span></code> +<div class="block">Use Java <a href="http://docs.oracle.com/javase/7/docs/api/java/beans/Introspector.html?is-external=true" title="class or interface in java.beans"><code>Introspector</code></a> for determining bean properties (<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang"><code>Boolean</code></a>, default=<jk>false</jk>).</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>static <a href="../../../org/apache/juneau/BeanContext.html" title="class in org.apache.juneau">BeanContext</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#DEFAULT">DEFAULT</a></span></code> +<div class="block">Default config.</div> +</td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static <a href="../../../org/apache/juneau/BeanContext.html" title="class in org.apache.juneau">BeanContext</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#DEFAULT_SORTED">DEFAULT_SORTED</a></span></code> +<div class="block">Default config.</div> +</td> +</tr> +</table> +</li> +</ul> +<!-- ======== CONSTRUCTOR SUMMARY ======== --> +<ul class="blockList"> +<li class="blockList"><a name="constructor.summary"> +<!-- --> +</a> +<h3>Constructor Summary</h3> +<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> +<caption><span>Constructors</span><span class="tabEnd"> </span></caption> +<tr> +<th class="colOne" scope="col">Constructor and Description</th> +</tr> +<tr class="altColor"> +<td class="colOne"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#BeanContext-org.apache.juneau.ContextFactory-">BeanContext</a></span>(<a href="../../../org/apache/juneau/ContextFactory.html" title="class in org.apache.juneau">ContextFactory</a> cf)</code> +<div class="block">Constructor.</div> +</td> +</tr> +</table> +</li> +</ul> +<!-- ========== METHOD SUMMARY =========== --> +<ul class="blockList"> +<li class="blockList"><a name="method.summary"> +<!-- --> +</a> +<h3>Method Summary</h3> +<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> +<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> +<tr> +<th class="colFirst" scope="col">Modifier and Type</th> +<th class="colLast" scope="col">Method and Description</th> +</tr> +<tr id="i0" class="altColor"> +<td class="colFirst"><code><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>></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#Z:Z_class--">_class</a></span>()</code> +<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>.</div> +</td> +</tr> +<tr id="i1" class="rowColor"> +<td class="colFirst"><code><T> T</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#convertToType-java.lang.Object-java.lang.Class-">convertToType</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> 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)</code> +<div class="block">Converts the specified value to the specified class type.</div> +</td> +</tr> +<tr id="i2" class="altColor"> +<td class="colFirst"><code><T> T</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#convertToType-java.lang.Object-org.apache.juneau.ClassMeta-">convertToType</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> value, + <a href="../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><T> type)</code> +<div class="block">Casts the specified value into the specified type.</div> +</td> +</tr> +<tr id="i3" class="rowColor"> +<td class="colFirst"><code><T> T</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#convertToType-java.lang.Object-java.lang.Object-java.lang.Class-">convertToType</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/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)</code> +<div class="block">Same as <a href="../../../org/apache/juneau/BeanContext.html#convertToType-java.lang.Object-java.lang.Class-"><code>convertToType(Object, Class)</code></a>, except used for instantiating inner member classes that must + be instantiated within another class instance.</div> +</td> +</tr> +<tr id="i4" class="altColor"> +<td class="colFirst"><code><T> T</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#convertToType-java.lang.Object-java.lang.Object-org.apache.juneau.ClassMeta-">convertToType</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/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/BeanContext.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> +</td> +</tr> +<tr id="i5" class="rowColor"> +<td class="colFirst"><code>protected static void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#dumpCacheStats--">dumpCacheStats</a></span>()</code> +<div class="block">Prints meta cache statistics to <code>System.out</code>.</div> +</td> +</tr> +<tr id="i6" class="altColor"> +<td class="colFirst"><code>boolean</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#equals-java.lang.Object-">equals</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> o)</code> </td> +</tr> +<tr id="i7" class="rowColor"> +<td class="colFirst"><code>protected <T> <a href="../../../org/apache/juneau/transform/BeanTransform.html" title="class in org.apache.juneau.transform">BeanTransform</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#findBeanTransform-java.lang.Class-">findBeanTransform</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">Returns the <a href="../../../org/apache/juneau/transform/BeanTransform.html" title="class in org.apache.juneau.transform"><code>BeanTransform</code></a> associated with the specified class, or <jk>null</jk> if there is no + bean transform associated with the class.</div> +</td> +</tr> +<tr id="i8" class="altColor"> +<td class="colFirst"><code>protected <T> <a href="../../../org/apache/juneau/transform/PojoTransform.html" title="class in org.apache.juneau.transform">PojoTransform</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#findPojoTransform-java.lang.Class-">findPojoTransform</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">Returns the <a href="../../../org/apache/juneau/transform/PojoTransform.html" title="class in org.apache.juneau.transform"><code>PojoTransform</code></a> associated with the specified class, or <jk>null</jk> if there is no + pojo transform associated with the class.</div> +</td> +</tr> +<tr id="i9" class="rowColor"> +<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/BeanContext.html#forBean-T-">forBean</a></span>(T o)</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.</div> +</td> +</tr> +<tr id="i10" class="altColor"> +<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/BeanContext.html#forBean-T-java.lang.Class-">forBean</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> +</td> +</tr> +<tr id="i11" class="rowColor"> +<td class="colFirst"><code><T> <a href="../../../org/apache/juneau/BeanMeta.html" title="class in org.apache.juneau">BeanMeta</a><T></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#getBeanMeta-java.lang.Class-">getBeanMeta</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">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> +</td> +</tr> +<tr id="i12" class="altColor"> +<td class="colFirst"><code><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></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#getClassLoader--">getClassLoader</a></span>()</code> +<div class="block">Returns the classloader associated with this bean context.</div> +</td> +</tr> +<tr id="i13" class="rowColor"> +<td class="colFirst"><code>protected <T> <a href="../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><T></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#getClassMeta-org.apache.juneau.annotation.BeanProperty-java.lang.reflect.Type-java.util.Map-">getClassMeta</a></span>(<a href="../../../org/apache/juneau/annotation/BeanProperty.html" title="annotation in org.apache.juneau.annotation">BeanProperty</a> p, + <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> t, + <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</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="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?>[]> typeVarImpls)</code> +<div class="block">Used for determining the class type on a method or field where a <code>@BeanProperty</code> annotation + may be present.</div> +</td> +</tr> +<tr id="i14" class="altColor"> +<td class="colFirst"><code><T> <a href="../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><T></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#getClassMeta-java.lang.Class-">getClassMeta</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">Construct 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> +</td> +</tr> +<tr id="i15" class="rowColor"> +<td class="colFirst"><code><a href="../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#getClassMeta-java.lang.reflect.Type-">getClassMeta</a></span>(<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> o)</code> +<div class="block">Constructs a ClassMeta object given the specified object and parameters.</div> +</td> +</tr> +<tr id="i16" class="altColor"> +<td class="colFirst"><code><T> <a href="../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><T></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#getClassMetaForObject-T-">getClassMetaForObject</a></span>(T o)</code> +<div class="block">Shortcut for calling <code>getClassMeta(o.getClass())</code>.</div> +</td> +</tr> +<tr id="i17" class="rowColor"> +<td class="colFirst"><code><a href="../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><?></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#getClassMetaFromString-java.lang.String-">getClassMetaFromString</a></span>(<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> s)</code> +<div class="block">Converts class name strings to ClassMeta objects.</div> +</td> +</tr> +<tr id="i18" class="altColor"> +<td class="colFirst"><code><a href="../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><?>[]</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#getClassMetas-java.lang.Class:A-">getClassMetas</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><?>[] classes)</code> +<div class="block">Given an array of <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> objects, returns an array of corresponding <a href="../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau"><code>ClassMeta</code></a> objects.</div> +</td> +</tr> +<tr id="i19" class="rowColor"> +<td class="colFirst"><code><E,T extends <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><E>><br><a href="../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><T></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#getCollectionClassMeta-java.lang.Class-java.lang.Class-">getCollectionClassMeta</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, + <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><E> elementType)</code> +<div class="block">Construct a <code>ClassMeta</code> wrapper around a <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util"><code>Collection</code></a> object.</div> +</td> +</tr> +<tr id="i20" class="altColor"> +<td class="colFirst"><code><E,T extends <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><E>><br><a href="../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><T></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#getCollectionClassMeta-java.lang.Class-org.apache.juneau.ClassMeta-">getCollectionClassMeta</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, + <a href="../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><E> elementType)</code> +<div class="block">Construct a <code>ClassMeta</code> wrapper around a <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util"><code>Collection</code></a> object.</div> +</td> +</tr> +<tr id="i21" class="rowColor"> +<td class="colFirst"><code><T extends <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>><br><a href="../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><T></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#getCollectionClassMeta-java.lang.Class-java.lang.reflect.Type-">getCollectionClassMeta</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, + <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> elementType)</code> +<div class="block">Construct a <code>ClassMeta</code> wrapper around a <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util"><code>Collection</code></a> object.</div> +</td> +</tr> +<tr id="i22" class="altColor"> +<td class="colFirst"><code>protected <T> <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Constructor.html?is-external=true" title="class or interface in java.lang.reflect">Constructor</a><? extends T></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#getImplClassConstructor-java.lang.Class-org.apache.juneau.Visibility-">getImplClassConstructor</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, + <a href="../../../org/apache/juneau/Visibility.html" title="enum in org.apache.juneau">Visibility</a> v)</code> +<div class="block">Gets the no-arg constructor for the specified class.</div> +</td> +</tr> +<tr id="i23" class="rowColor"> +<td class="colFirst"><code><K,V,T extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><K,V>><br><a href="../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><T></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#getMapClassMeta-java.lang.Class-java.lang.Class-java.lang.Class-">getMapClassMeta</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, + <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><K> keyType, + <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><V> valueType)</code> +<div class="block">Construct a <code>ClassMeta</code> wrapper around a <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> object.</div> +</td> +</tr> +<tr id="i24" class="altColor"> +<td class="colFirst"><code><K,V,T extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><K,V>><br><a href="../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><T></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#getMapClassMeta-java.lang.Class-org.apache.juneau.ClassMeta-org.apache.juneau.ClassMeta-">getMapClassMeta</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, + <a href="../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><K> keyType, + <a href="../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><V> valueType)</code> +<div class="block">Construct a <code>ClassMeta</code> wrapper around a <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> object.</div> +</td> +</tr> +<tr id="i25" class="rowColor"> +<td class="colFirst"><code><T extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>><br><a href="../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><T></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#getMapClassMeta-java.lang.Class-java.lang.reflect.Type-java.lang.reflect.Type-">getMapClassMeta</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, + <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> keyType, + <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> valueType)</code> +<div class="block">Construct a <code>ClassMeta</code> wrapper around a <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> object.</div> +</td> +</tr> +<tr id="i26" class="altColor"> +<td class="colFirst"><code>protected boolean</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#hasChildPojoTransforms-java.lang.Class-">hasChildPojoTransforms</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><?> c)</code> +<div class="block">Checks whether a class has a <a href="../../../org/apache/juneau/transform/PojoTransform.html" title="class in org.apache.juneau.transform"><code>PojoTransform</code></a> associated with it in this bean context.</div> +</td> +</tr> +<tr id="i27" class="rowColor"> +<td class="colFirst"><code>int</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#hashCode--">hashCode</a></span>()</code> </td> +</tr> +<tr id="i28" class="altColor"> +<td class="colFirst"><code>boolean</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#hasSameCache-org.apache.juneau.BeanContext-">hasSameCache</a></span>(<a href="../../../org/apache/juneau/BeanContext.html" title="class in org.apache.juneau">BeanContext</a> bc)</code> +<div class="block">Returns <jk>true</jk> if the specified bean context shares the same cache as this bean context.</div> +</td> +</tr> +<tr id="i29" class="rowColor"> +<td class="colFirst"><code>boolean</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#isBean-java.lang.Class-">isBean</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><?> c)</code> +<div class="block">Determines whether the specified class matches the requirements on this context of being a bean.</div> +</td> +</tr> +<tr id="i30" class="altColor"> +<td class="colFirst"><code>boolean</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#isBean-java.lang.Object-">isBean</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> o)</code> +<div class="block">Determines whether the specified object matches the requirements on this context of being a bean.</div> +</td> +</tr> +<tr id="i31" class="rowColor"> +<td class="colFirst"><code>boolean</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#isIgnoreUnknownBeanProperties--">isIgnoreUnknownBeanProperties</a></span>()</code> +<div class="block">Bean property getter: <property>ignoreUnknownBeanProperties</property>.</div> +</td> +</tr> +<tr id="i32" class="altColor"> +<td class="colFirst"><code>protected boolean</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#isNotABean-java.lang.Class-">isNotABean</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><?> c)</code> +<div class="block">Determines whether the specified class is ignored as a bean class based on the various + exclusion parameters specified on this context class.</div> +</td> +</tr> +<tr id="i33" class="rowColor"> +<td class="colFirst"><code><T> T</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.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> +</td> +</tr> +<tr id="i34" class="altColor"> +<td class="colFirst"><code><T> T</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.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/BeanContext.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="i35" class="rowColor"> +<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/BeanContext.html#newBeanMap-java.lang.Class-">newBeanMap</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 <a href="../../../org/apache/juneau/BeanMap.html" title="class in org.apache.juneau"><code>BeanMap</code></a> object (i.e.</div> +</td> +</tr> +<tr id="i36" class="altColor"> +<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/BeanContext.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/BeanContext.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="i37" class="rowColor"> +<td class="colFirst"><code><T> <a href="../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><T></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#normalizeClassMeta-org.apache.juneau.ClassMeta-">normalizeClassMeta</a></span>(<a href="../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><T> cm)</code> +<div class="block">Returns the class type bound to this bean context if the specified class type + is from another bean context.</div> +</td> +</tr> +<tr id="i38" class="altColor"> +<td class="colFirst"><code><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>></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#object--">object</a></span>()</code> +<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>.</div> +</td> +</tr> +<tr id="i39" class="rowColor"> +<td class="colFirst"><code><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>></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#string--">string</a></span>()</code> +<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>.</div> +</td> +</tr> +<tr id="i40" class="altColor"> +<td class="colFirst"><code><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></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#toArray-org.apache.juneau.ClassMeta-java.util.Collection-">toArray</a></span>(<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)</code> +<div class="block">Converts the contents of the specified list into an array.</div> +</td> +</tr> +<tr id="i41" class="rowColor"> +<td class="colFirst"><code><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></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#toString--">toString</a></span>()</code> </td> +</tr> +</table> +<ul class="blockList"> +<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> +<!-- --> +</a> +<h3>Methods inherited from class java.lang.<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></h3> +<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-ex ternal=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> +</ul> +</li> +</ul> +</li> +</ul> +</div> +<div class="details"> +<ul class="blockList"> +<li class="blockList"> +<!-- ============ FIELD DETAIL =========== --> +<ul class="blockList"> +<li class="blockList"><a name="field.detail"> +<!-- --> +</a> +<h3>Field Detail</h3> +<a name="BEAN_beansRequireDefaultConstructor"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>BEAN_beansRequireDefaultConstructor</h4> +<pre>public static 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/BeanContext.html#line.202">BEAN_beansRequireDefaultConstructor</a></pre> +<div class="block">Require no-arg constructor (<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang"><code>Boolean</code></a>, default=<jk>false</jk>). + <p> + If <jk>true</jk>, a Java class must implement a default no-arg constructor to be considered a bean. + <p> + The <a href="../../../org/apache/juneau/annotation/Bean.html" title="annotation in org.apache.juneau.annotation"><code>@Bean</code></a> annotation can be used on a class to override this setting when <jk>true</jk>.</div> +<dl> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../constant-values.html#org.apache.juneau.BeanContext.BEAN_beansRequireDefaultConstructor">Constant Field Values</a></dd> +</dl> +</li> +</ul> +<a name="BEAN_beansRequireSerializable"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>BEAN_beansRequireSerializable</h4> +<pre>public static 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/BeanContext.html#line.211">BEAN_beansRequireSerializable</a></pre> +<div class="block">Require <a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io"><code>Serializable</code></a> interface (<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang"><code>Boolean</code></a>, default=<jk>false</jk>). + <p> + If <jk>true</jk>, a Java class must implement the <a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io"><code>Serializable</code></a> interface to be considered a bean. + <p> + The <a href="../../../org/apache/juneau/annotation/Bean.html" title="annotation in org.apache.juneau.annotation"><code>@Bean</code></a> annotation can be used on a class to override this setting when <jk>true</jk>.</div> +<dl> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../constant-values.html#org.apache.juneau.BeanContext.BEAN_beansRequireSerializable">Constant Field Values</a></dd> +</dl> +</li> +</ul> +<a name="BEAN_beansRequireSettersForGetters"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>BEAN_beansRequireSettersForGetters</h4> +<pre>public static 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/BeanContext.html#line.219">BEAN_beansRequireSettersForGetters</a></pre> +<div class="block">Require setters for getters (<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang"><code>Boolean</code></a>, default=<jk>false</jk>). + <p> + If <jk>true</jk>, only getters that have equivalent setters will be considered as properties on a bean. + Otherwise, they will be ignored.</div> +<dl> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../constant-values.html#org.apache.juneau.BeanContext.BEAN_beansRequireSettersForGetters">Constant Field Values</a></dd> +</dl> +</li> +</ul> +<a name="BEAN_beansRequireSomeProperties"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>BEAN_beansRequireSomeProperties</h4> +<pre>public static 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/BeanContext.html#line.228">BEAN_beansRequireSomeProperties</a></pre> +<div class="block">Require some properties (<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang"><code>Boolean</code></a>, default=<jk>true</jk>). + <p> + If <jk>true</jk>, then a Java class must contain at least 1 property to be considered a bean. + <p> + The <a href="../../../org/apache/juneau/annotation/Bean.html" title="annotation in org.apache.juneau.annotation"><code>@Bean</code></a> annotation can be used on a class to override this setting when <jk>true</jk>.</div> +<dl> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../constant-values.html#org.apache.juneau.BeanContext.BEAN_beansRequireSomeProperties">Constant Field Values</a></dd> +</dl> +</li> +</ul> +<a name="BEAN_beanMapPutReturnsOldValue"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>BEAN_beanMapPutReturnsOldValue</h4> +<pre>public static 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/BeanContext.html#line.237">BEAN_beanMapPutReturnsOldValue</a></pre> +<div class="block">Put returns old value (<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang"><code>Boolean</code></a>, default=<jk>false</jk>). + <p> + If <jk>true</jk>, then the <a href="../../../org/apache/juneau/BeanMap.html#put-java.lang.String-java.lang.Object-"><code>BeanMap.put()</code></a> method will return old property values. + <p> + Disabled by default because it introduces a slight performance penalty.</div> +<dl> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../constant-values.html#org.apache.juneau.BeanContext.BEAN_beanMapPutReturnsOldValue">Constant Field Values</a></dd> +</dl> +</li> +</ul> +<a name="BEAN_beanConstructorVisibility"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>BEAN_beanConstructorVisibility</h4> +<pre>public static 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/BeanContext.html#line.242">BEAN_beanConstructorVisibility</a></pre> +<div class="block">Look for bean constructors with the specified minimum visibility (<a href="../../../org/apache/juneau/Visibility.html" title="enum in org.apache.juneau"><code>Visibility</code></a>, default=<a href="../../../org/apache/juneau/Visibility.html#PUBLIC"><code>Visibility.PUBLIC</code></a>).</div> +<dl> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../constant-values.html#org.apache.juneau.BeanContext.BEAN_beanConstructorVisibility">Constant Field Values</a></dd> +</dl> +</li> +</ul> +<a name="BEAN_beanClassVisibility"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>BEAN_beanClassVisibility</h4> +<pre>public static 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/BeanContext.html#line.251">BEAN_beanClassVisibility</a></pre> +<div class="block">Look for bean classes with the specified minimum visibility (<a href="../../../org/apache/juneau/Visibility.html" title="enum in org.apache.juneau"><code>Visibility</code></a>, default=<a href="../../../org/apache/juneau/Visibility.html#PUBLIC"><code>Visibility.PUBLIC</code></a>). + <p> + Classes are not considered beans unless they meet the minimum visibility requirements. + For example, if the visibility is <code>PUBLIC</code> and the bean class is <jk>protected</jk>, then + the class will not be interpreted as a bean class.</div> +<dl> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../constant-values.html#org.apache.juneau.BeanContext.BEAN_beanClassVisibility">Constant Field Values</a></dd> +</dl> +</li> +</ul> +<a name="BEAN_beanFieldVisibility"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>BEAN_beanFieldVisibility</h4> +<pre>public static 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/BeanContext.html#line.262">BEAN_beanFieldVisibility</a></pre> +<div class="block">Look for bean fields with the specified minimum visibility (<a href="../../../org/apache/juneau/Visibility.html" title="enum in org.apache.juneau"><code>Visibility</code></a>, default=<a href="../../../org/apache/juneau/Visibility.html#PUBLIC"><code>Visibility.PUBLIC</code></a>). + <p> + Fields are not considered bean properties unless they meet the minimum visibility requirements. + For example, if the visibility is <code>PUBLIC</code> and the bean field is <jk>protected</jk>, then + the field will not be interpreted as a bean property. + <p> + Use <a href="../../../org/apache/juneau/Visibility.html#NONE"><code>Visibility.NONE</code></a> to prevent bean fields from being interpreted as bean properties altogether.</div> +<dl> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../constant-values.html#org.apache.juneau.BeanContext.BEAN_beanFieldVisibility">Constant Field Values</a></dd> +</dl> +</li> +</ul> +<a name="BEAN_methodVisibility"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>BEAN_methodVisibility</h4> +<pre>public static 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/BeanContext.html#line.271">BEAN_methodVisibility</a></pre> +<div class="block">Look for bean methods with the specified minimum visibility (<a href="../../../org/apache/juneau/Visibility.html" title="enum in org.apache.juneau"><code>Visibility</code></a>, default=<a href="../../../org/apache/juneau/Visibility.html#PUBLIC"><code>Visibility.PUBLIC</code></a>). + <p> + Methods are not considered bean getters/setters unless they meet the minimum visibility requirements. + For example, if the visibility is <code>PUBLIC</code> and the bean method is <jk>protected</jk>, then + the method will not be interpreted as a bean getter or setter.</div> +<dl> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../constant-values.html#org.apache.juneau.BeanContext.BEAN_methodVisibility">Constant Field Values</a></dd> +</dl> +</li> +</ul> +<a name="BEAN_useJavaBeanIntrospector"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>BEAN_useJavaBeanIntrospector</h4> +<pre>public static 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/BeanContext.html#line.279">BEAN_useJavaBeanIntrospector</a></pre> +<div class="block">Use Java <a href="http://docs.oracle.com/javase/7/docs/api/java/beans/Introspector.html?is-external=true" title="class or interface in java.beans"><code>Introspector</code></a> for determining bean properties (<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang"><code>Boolean</code></a>, default=<jk>false</jk>). + <p> + Using the built-in Java bean introspector will not pick up fields or non-standard getters/setters. + Most <a href="../../../org/apache/juneau/annotation/Bean.html" title="annotation in org.apache.juneau.annotation"><code>@Bean</code></a> annotations will be ignored.</div> +<dl> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../constant-values.html#org.apache.juneau.BeanContext.BEAN_useJavaBeanIntrospector">Constant Field Values</a></dd> +</dl> +</li> +</ul> +<a name="BEAN_useInterfaceProxies"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>BEAN_useInterfaceProxies</h4> +<pre>public static 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/BeanContext.html#line.287">BEAN_useInterfaceProxies</a></pre> +<div class="block">Use interface proxies (<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang"><code>Boolean</code></a>, default=<jk>true</jk>). + <p> + If <jk>true</jk>, then interfaces will be instantiated as proxy classes through the use of an <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/InvocationHandler.html?is-external=true" title="class or interface in java.lang.reflect"><code>InvocationHandler</code></a> + if there is no other way of instantiating them.</div> +<dl> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../constant-values.html#org.apache.juneau.BeanContext.BEAN_useInterfaceProxies">Constant Field Values</a></dd> +</dl> +</li> +</ul> +<a name="BEAN_ignoreUnknownBeanProperties"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>BEAN_ignoreUnknownBeanProperties</h4> +<pre>public static 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/BeanContext.html#line.295">BEAN_ignoreUnknownBeanProperties</a></pre> +<div class="block">Ignore unknown properties (<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang"><code>Boolean</code></a>, default=<jk>false</jk>). + <p> + If <jk>true</jk>, trying to set a value on a non-existent bean property will silently be ignored. + Otherwise, a <code>RuntimeException</code> is thrown.</div> +<dl> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../constant-values.html#org.apache.juneau.BeanContext.BEAN_ignoreUnknownBeanProperties">Constant Field Values</a></dd> +</dl> +</li> +</ul> +<a name="BEAN_ignoreUnknownNullBeanProperties"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>BEAN_ignoreUnknownNullBeanProperties</h4> +<pre>public static 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/BeanContext.html#line.303">BEAN_ignoreUnknownNullBeanProperties</a></pre> +<div class="block">Ignore unknown properties with null values (<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang"><code>Boolean</code></a>, default=<jk>true</jk>). + <p> + If <jk>true</jk>, trying to set a <jk>null</jk> value on a non-existent bean property will silently be ignored. + Otherwise, a <code>RuntimeException</code> is thrown.</div> +<dl> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../constant-values.html#org.apache.juneau.BeanContext.BEAN_ignoreUnknownNullBeanProperties">Constant Field Values</a></dd> +</dl> +</li> +</ul> +<a name="BEAN_ignorePropertiesWithoutSetters"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>BEAN_ignorePropertiesWithoutSetters</h4> +<pre>public static 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/BeanContext.html#line.311">BEAN_ignorePropertiesWithoutSetters</a></pre> +<div class="block">Ignore properties without setters (<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang"><code>Boolean</code></a>, default=<jk>true</jk>). + <p> + If <jk>true</jk>, trying to set a value on a bean property without a setter will silently be ignored. + Otherwise, a <code>RuntimeException</code> is thrown.</div> +<dl> +<dt><span class="seeLabel">See Also:</span></dt> +<dd><a href="../../../constant-values.html#org.apache.juneau.BeanContext.BEAN_ignorePropertiesWithoutSetters">Constant Field Values</a></dd> +</dl> +</li> +</ul> +<a name="BEAN_ignoreInvocationExceptionsOnGetters"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>BEAN_ignoreInvocationExceptionsOnGetters</h4> +<pre>public static 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/BeanContext.html#line.319">BEAN_ignoreInvocationExceptionsOnGetters</a></pre> +<div class="block">Ignore invocation errors on getters (<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang"><code>Boolean</code></a>, default=<jk>false</jk>). + <p> + If <jk>true</jk>, errors thrown when calling bean getter methods will silently be ignored. + Otherwis
<TRUNCATED>
