http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/081b41e6/content/apidocs/org/apache/juneau/BeanContext.html ---------------------------------------------------------------------- diff --git a/content/apidocs/org/apache/juneau/BeanContext.html b/content/apidocs/org/apache/juneau/BeanContext.html deleted file mode 100644 index d94990d..0000000 --- a/content/apidocs/org/apache/juneau/BeanContext.html +++ /dev/null @@ -1,2998 +0,0 @@ -<!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 --> -<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -<title>BeanContext (Apache Juneau (incubating) 6.0.0-incubating-SNAPSHOT)</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 (Apache Juneau (incubating) 6.0.0-incubating-SNAPSHOT)"; - } - } - 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,"i42":10,"i43":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/BeanDictionary.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.374">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/BeanFilter.html" title="class in org.apache.juneau.transform"><code>beanFilters</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 configuration properties</h5> - <code>BeanContexts</code> have several configuration properties 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> - - - <h6 class='topic' id='ConfigProperties'>Properties associated with handling beans on serializers and parsers</h6> - <table class='styled' style='border-collapse: collapse;'> - <tr><th>Setting name</th><th>Description</th><th>Data type</th><th>Default value</th></tr> - <tr> - <td><a href="../../../org/apache/juneau/BeanContext.html#BEAN_beansRequireDefaultConstructor"><code>BEAN_beansRequireDefaultConstructor</code></a></td> - <td>Beans require no-arg constructors.</td> - <td><code>Boolean</code></td> - <td><jk>false</jk></td> - </tr> - <tr> - <td><a href="../../../org/apache/juneau/BeanContext.html#BEAN_beansRequireSerializable"><code>BEAN_beansRequireSerializable</code></a></td> - <td>Beans require Serializable interface.</td> - <td><code>Boolean</code></td> - <td><jk>false</jk></td> - </tr> - <tr> - <td><a href="../../../org/apache/juneau/BeanContext.html#BEAN_beansRequireSettersForGetters"><code>BEAN_beansRequireSettersForGetters</code></a></td> - <td>Beans require setters for getters.</td> - <td><code>Boolean</code></td> - <td><jk>false</jk></td> - </tr> - <tr> - <td><a href="../../../org/apache/juneau/BeanContext.html#BEAN_beansRequireSomeProperties"><code>BEAN_beansRequireSomeProperties</code></a></td> - <td>Beans require at least one property.</td> - <td><code>Boolean</code></td> - <td><jk>true</jk></td> - </tr> - <tr> - <td><a href="../../../org/apache/juneau/BeanContext.html#BEAN_beanMapPutReturnsOldValue"><code>BEAN_beanMapPutReturnsOldValue</code></a></td> - <td><a href="../../../org/apache/juneau/BeanMap.html#put-java.lang.String-java.lang.Object-"><code>BeanMap.put()</code></a> method will return old property value.</td> - <td><code>Boolean</code></td> - <td><jk>false</jk></td> - </tr> - <tr> - <td><a href="../../../org/apache/juneau/BeanContext.html#BEAN_beanConstructorVisibility"><code>BEAN_beanConstructorVisibility</code></a></td> - <td>Look for bean constructors with specified minimum visibility.</td> - <td><a href="../../../org/apache/juneau/Visibility.html" title="enum in org.apache.juneau"><code>Visibility</code></a></td> - <td><a href="../../../org/apache/juneau/Visibility.html#PUBLIC"><code>Visibility.PUBLIC</code></a></td> - </tr> - <tr> - <td><a href="../../../org/apache/juneau/BeanContext.html#BEAN_beanClassVisibility"><code>BEAN_beanClassVisibility</code></a></td> - <td>Look for bean classes with specified minimum visibility.</td> - <td><a href="../../../org/apache/juneau/Visibility.html" title="enum in org.apache.juneau"><code>Visibility</code></a></td> - <td><a href="../../../org/apache/juneau/Visibility.html#PUBLIC"><code>Visibility.PUBLIC</code></a></td> - </tr> - <tr> - <td><a href="../../../org/apache/juneau/BeanContext.html#BEAN_beanFieldVisibility"><code>BEAN_beanFieldVisibility</code></a></td> - <td>Look for bean fields with specified minimum visibility.</td> - <td><a href="../../../org/apache/juneau/Visibility.html" title="enum in org.apache.juneau"><code>Visibility</code></a></td> - <td><a href="../../../org/apache/juneau/Visibility.html#PUBLIC"><code>Visibility.PUBLIC</code></a></td> - </tr> - <tr> - <td><a href="../../../org/apache/juneau/BeanContext.html#BEAN_methodVisibility"><code>BEAN_methodVisibility</code></a></td> - <td>Look for bean methods with specified minimum visibility.</td> - <td><a href="../../../org/apache/juneau/Visibility.html" title="enum in org.apache.juneau"><code>Visibility</code></a></td> - <td><a href="../../../org/apache/juneau/Visibility.html#PUBLIC"><code>Visibility.PUBLIC</code></a></td> - </tr> - <tr> - <td><a href="../../../org/apache/juneau/BeanContext.html#BEAN_useJavaBeanIntrospector"><code>BEAN_useJavaBeanIntrospector</code></a></td> - <td>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.</td> - <td><code>Boolean</code></td> - <td><jk>false</jk></td> - </tr> - <tr> - <td><a href="../../../org/apache/juneau/BeanContext.html#BEAN_useInterfaceProxies"><code>BEAN_useInterfaceProxies</code></a></td> - <td>Use interface proxies.</td> - <td><code>Boolean</code></td> - <td><jk>true</jk></td> - </tr> - <tr> - <td><a href="../../../org/apache/juneau/BeanContext.html#BEAN_ignoreUnknownBeanProperties"><code>BEAN_ignoreUnknownBeanProperties</code></a></td> - <td>Ignore unknown properties.</td> - <td><code>Boolean</code></td> - <td><jk>false</jk></td> - </tr> - <tr> - <td><a href="../../../org/apache/juneau/BeanContext.html#BEAN_ignoreUnknownNullBeanProperties"><code>BEAN_ignoreUnknownNullBeanProperties</code></a></td> - <td>Ignore unknown properties with null values.</td> - <td><code>Boolean</code></td> - <td><jk>true</jk></td> - </tr> - <tr> - <td><a href="../../../org/apache/juneau/BeanContext.html#BEAN_ignorePropertiesWithoutSetters"><code>BEAN_ignorePropertiesWithoutSetters</code></a></td> - <td>Ignore bean properties without setters.</td> - <td><code>Boolean</code></td> - <td><jk>true</jk></td> - </tr> - <tr> - <td><a href="../../../org/apache/juneau/BeanContext.html#BEAN_ignoreInvocationExceptionsOnGetters"><code>BEAN_ignoreInvocationExceptionsOnGetters</code></a></td> - <td>Ignore invocation errors on getters.</td> - <td><code>Boolean</code></td> - <td><jk>false</jk></td> - </tr> - <tr> - <td><a href="../../../org/apache/juneau/BeanContext.html#BEAN_ignoreInvocationExceptionsOnSetters"><code>BEAN_ignoreInvocationExceptionsOnSetters</code></a></td> - <td>Ignore invocation errors on setters.</td> - <td><code>Boolean</code></td> - <td><jk>false</jk></td> - </tr> - <tr> - <td><a href="../../../org/apache/juneau/BeanContext.html#BEAN_sortProperties"><code>BEAN_sortProperties</code></a></td> - <td>Sort bean properties in alphabetical order.</td> - <td><code>Boolean</code></td> - <td><jk>false</jk></td> - </tr> - <tr> - <td> - <a href="../../../org/apache/juneau/BeanContext.html#BEAN_notBeanPackages"><code>BEAN_notBeanPackages</code></a><br> - <a href="../../../org/apache/juneau/BeanContext.html#BEAN_notBeanPackages_add"><code>BEAN_notBeanPackages_add</code></a><br> - <a href="../../../org/apache/juneau/BeanContext.html#BEAN_notBeanPackages_remove"><code>BEAN_notBeanPackages_remove</code></a> - </td> - <td>Packages whose classes should not be considered beans.</td> - <td><code>Set<String></code></td> - <td>See details</td> - </tr> - <tr> - <td> - <a href="../../../org/apache/juneau/BeanContext.html#BEAN_notBeanClasses"><code>BEAN_notBeanClasses</code></a><br> - <a href="../../../org/apache/juneau/BeanContext.html#BEAN_notBeanClasses_add"><code>BEAN_notBeanClasses_add</code></a><br> - <a href="../../../org/apache/juneau/BeanContext.html#BEAN_notBeanClasses_remove"><code>BEAN_notBeanClasses_remove</code></a> - </td> - <td>Classes that should not be considered beans.</td> - <td><code>Set<Class></code></td> - <td>empty set</td> - </tr> - <tr> - <td> - <a href="../../../org/apache/juneau/BeanContext.html#BEAN_beanFilters"><code>BEAN_beanFilters</code></a><br> - <a href="../../../org/apache/juneau/BeanContext.html#BEAN_beanFilters_add"><code>BEAN_beanFilters_add</code></a><br> - <a href="../../../org/apache/juneau/BeanContext.html#BEAN_beanFilters_remove"><code>BEAN_beanFilters_remove</code></a> - </td> - <td>Bean filters to apply to beans.</td> - <td><code>List<Class></code></td> - <td>empty list</td> - </tr> - <tr> - <td> - <a href="../../../org/apache/juneau/BeanContext.html#BEAN_pojoSwaps"><code>BEAN_pojoSwaps</code></a><br> - <a href="../../../org/apache/juneau/BeanContext.html#BEAN_pojoSwaps_add"><code>BEAN_pojoSwaps_add</code></a><br> - <a href="../../../org/apache/juneau/BeanContext.html#BEAN_pojoSwaps_remove"><code>BEAN_pojoSwaps_remove</code></a> - </td> - <td>POJO swaps to apply to java objects.</td> - <td><code>List<Class></code></td> - <td>empty list</td> - </tr> - <tr> - <td> - <a href="../../../org/apache/juneau/BeanContext.html#BEAN_implClasses"><code>BEAN_implClasses</code></a><br> - <a href="../../../org/apache/juneau/BeanContext.html#BEAN_implClasses_put"><code>BEAN_implClasses_put</code></a> - </td> - <td>Implementation classes for interfaces and abstract classes.</td> - <td><code>Map<Class,Class></code></td> - <td>empty map</td> - </tr> - <tr> - <td> - <a href="../../../org/apache/juneau/BeanContext.html#BEAN_beanDictionary"><code>BEAN_beanDictionary</code></a><br> - <a href="../../../org/apache/juneau/BeanContext.html#BEAN_beanDictionary_add"><code>BEAN_beanDictionary_add</code></a><br> - <a href="../../../org/apache/juneau/BeanContext.html#BEAN_beanDictionary_remove"><code>BEAN_beanDictionary_remove</code></a> - </td> - <td>Bean lookup dictionary.</td> - <td><code>List<Class></code></td> - <td>empty list</td> - </tr> - <tr> - <td> - <a href="../../../org/apache/juneau/BeanContext.html#BEAN_beanTypePropertyName"><code>BEAN_beanTypePropertyName</code></a> - </td> - <td>Name to use for the bean type property used to represent a bean type.</td> - <td><code>String</code></td> - <td><js>"_type"</js></td> - </tr> - <tr> - <td> - <a href="../../../org/apache/juneau/BeanContext.html#BEAN_defaultParser"><code>BEAN_defaultParser</code></a> - </td> - <td>Default parser to use when converting <code>Strings</code> to POJOs.</td> - <td><code>Class</code></td> - <td><a href="../../../org/apache/juneau/json/JsonParser.html" title="class in org.apache.juneau.json"><code>JsonParser</code></a></td> - </tr> - </table> - - - <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'>BeanFilters and PojoSwaps</h5> - <p> - <a href="../../../org/apache/juneau/transform/BeanFilter.html" title="class in org.apache.juneau.transform"><code>BeanFilters</code></a> and <a href="../../../org/apache/juneau/transform/PojoSwap.html" title="class in org.apache.juneau.transform"><code>PojoSwaps</code></a> are used to tailor how beans and POJOs are handled.<br> - <ol class='spaced-list'> - <li><a href="../../../org/apache/juneau/transform/BeanFilter.html" title="class in org.apache.juneau.transform"><code>BeanFilter</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). - This includes specifying which properties are visible and the ability to programmatically override the execution of properties. - <li><a href="../../../org/apache/juneau/transform/PojoSwap.html" title="class in org.apache.juneau.transform"><code>PojoSwap</code></a> - Allows you to swap out non-serializable objects with serializable replacements. - </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 (james.bog...@salesforce.com)</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"><b>Configuration property:</b> Look for bean classes with the specified minimum visibility.</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"><b>Configuration property:</b> Look for bean constructors with the specified minimum visibility.</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_beanDictionary">BEAN_beanDictionary</a></span></code> -<div class="block"><b>Configuration property:</b> Bean lookup dictionary.</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_beanDictionary_add">BEAN_beanDictionary_add</a></span></code> -<div class="block"><b>Configuration property:</b> Add to bean dictionary.</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_beanDictionary_remove">BEAN_beanDictionary_remove</a></span></code> -<div class="block"><b>Configuration property:</b> Remove from bean dictionary.</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_beanFieldVisibility">BEAN_beanFieldVisibility</a></span></code> -<div class="block"><b>Configuration property:</b> Look for bean fields with the specified minimum visibility.</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_beanFilters">BEAN_beanFilters</a></span></code> -<div class="block"><b>Configuration property:</b> Bean filters to apply to 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_beanFilters_add">BEAN_beanFilters_add</a></span></code> -<div class="block"><b>Configuration property:</b> Add to bean filters.</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_beanFilters_remove">BEAN_beanFilters_remove</a></span></code> -<div class="block"><b>Configuration property:</b> Remove from bean filters.</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"><b>Configuration property:</b> <a href="../../../org/apache/juneau/BeanMap.html#put-java.lang.String-java.lang.Object-"><code>BeanMap.put()</code></a> method will return old property value.</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"><b>Configuration property:</b> Beans require no-arg constructors.</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"><b>Configuration property:</b> Beans 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.</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"><b>Configuration property:</b> Beans require setters for getters.</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"><b>Configuration property:</b> Beans require at least one 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_beanTypePropertyName">BEAN_beanTypePropertyName</a></span></code> -<div class="block"><b>Configuration property:</b> Name to use for the bean type properties used to represent a bean type.</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_defaultParser">BEAN_defaultParser</a></span></code> -<div class="block"><b>Configuration property:</b> Default parser to use when converting <code>Strings</code> to POJOs.</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_ignoreInvocationExceptionsOnGetters">BEAN_ignoreInvocationExceptionsOnGetters</a></span></code> -<div class="block"><b>Configuration property:</b> Ignore invocation errors on getters.</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_ignoreInvocationExceptionsOnSetters">BEAN_ignoreInvocationExceptionsOnSetters</a></span></code> -<div class="block"><b>Configuration property:</b> Ignore invocation errors on setters.</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_ignorePropertiesWithoutSetters">BEAN_ignorePropertiesWithoutSetters</a></span></code> -<div class="block"><b>Configuration property:</b> Ignore properties without setters.</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_ignoreUnknownBeanProperties">BEAN_ignoreUnknownBeanProperties</a></span></code> -<div class="block"><b>Configuration property:</b> Ignore unknown properties.</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_ignoreUnknownNullBeanProperties">BEAN_ignoreUnknownNullBeanProperties</a></span></code> -<div class="block"><b>Configuration property:</b> Ignore unknown properties with null values.</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">BEAN_implClasses</a></span></code> -<div class="block"><b>Configuration property:</b> Implementation classes for interfaces and abstract 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_implClasses_put">BEAN_implClasses_put</a></span></code> -<div class="block"><b>Configuration property:</b> Add an implementation class.</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_methodVisibility">BEAN_methodVisibility</a></span></code> -<div class="block"><b>Configuration property:</b> Look for bean methods with the specified minimum visibility.</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">BEAN_notBeanClasses</a></span></code> -<div class="block"><b>Configuration property:</b> Classes to be excluded from consideration as being 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_add">BEAN_notBeanClasses_add</a></span></code> -<div class="block"><b>Configuration property:</b> Add to classes that 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_notBeanClasses_remove">BEAN_notBeanClasses_remove</a></span></code> -<div class="block"><b>Configuration property:</b> Remove from classes that 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_notBeanPackages">BEAN_notBeanPackages</a></span></code> -<div class="block"><b>Configuration property:</b> 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_add">BEAN_notBeanPackages_add</a></span></code> -<div class="block"><b>Configuration property:</b> Add to 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_notBeanPackages_remove">BEAN_notBeanPackages_remove</a></span></code> -<div class="block"><b>Configuration property:</b> Remove from 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_pojoSwaps">BEAN_pojoSwaps</a></span></code> -<div class="block"><b>Configuration property:</b> POJO swaps to apply to Java objects.</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_pojoSwaps_add">BEAN_pojoSwaps_add</a></span></code> -<div class="block"><b>Configuration property:</b> Add to POJO swap 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_pojoSwaps_remove">BEAN_pojoSwaps_remove</a></span></code> -<div class="block"><b>Configuration property:</b> Remove from POJO swap 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_sortProperties">BEAN_sortProperties</a></span></code> -<div class="block"><b>Configuration property:</b> Sort bean properties in alphabetical order.</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_useInterfaceProxies">BEAN_useInterfaceProxies</a></span></code> -<div class="block"><b>Configuration property:</b> Use interface proxies.</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_useJavaBeanIntrospector">BEAN_useJavaBeanIntrospector</a></span></code> -<div class="block"><b>Configuration property:</b> 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.</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">DEFAULT</a></span></code> -<div class="block">Default config.</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_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/BeanFilter.html" title="class in org.apache.juneau.transform">BeanFilter</a></code></td> -<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#findBeanFilter-java.lang.Class-">findBeanFilter</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/BeanFilter.html" title="class in org.apache.juneau.transform"><code>BeanFilter</code></a> associated with the specified class, or <jk>null</jk> if there is no - bean filter associated with the class.</div> -</td> -</tr> -<tr id="i8" class="altColor"> -<td class="colFirst"><code>protected <T> <a href="../../../org/apache/juneau/transform/PojoSwap.html" title="class in org.apache.juneau.transform">PojoSwap</a></code></td> -<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#findPojoSwap-java.lang.Class-">findPojoSwap</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/PojoSwap.html" title="class in org.apache.juneau.transform"><code>PojoSwap</code></a> associated with the specified class, or <jk>null</jk> if there is no - pojo swap 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><a href="../../../org/apache/juneau/BeanDictionary.html" title="class in org.apache.juneau">BeanDictionary</a></code></td> -<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#getBeanDictionary--">getBeanDictionary</a></span>()</code> -<div class="block">Returns the bean dictionary defined in this bean context defined by <a href="../../../org/apache/juneau/BeanContext.html#BEAN_beanDictionary"><code>BEAN_beanDictionary</code></a>.</div> -</td> -</tr> -<tr id="i12" class="altColor"> -<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="i13" 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#getBeanTypePropertyName--">getBeanTypePropertyName</a></span>()</code> -<div class="block">Returns the type property name as defined by <a href="../../../org/apache/juneau/BeanContext.html#BEAN_beanTypePropertyName"><code>BEAN_beanTypePropertyName</code></a>.</div> -</td> -</tr> -<tr id="i14" 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="i15" 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="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#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="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#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="i18" 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="i19" 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="i20" 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="i21" 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="i22" 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="i23" 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="i24" 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="i25" 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="i26" 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="i27" 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="i28" class="altColor"> -<td class="colFirst"><code>protected boolean</code></td> -<td class="colLast"><code><span class="memberNameLink"><a href="../../../org/apache/juneau/BeanContext.html#hasChildPojoSwaps-java.lang.Class-">hasChildPojoSwaps</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/PojoSwap.html" title="class in org.apache.juneau.transform"><code>PojoSwap</code></a> associated with it in this bean context.</div> -</td> -</tr> -<tr id="i29" 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="i30" 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="i31" 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="i32" 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="i33" 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="i34" 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="i35" 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="i36" 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="i37" 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="i38" 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="i39" 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="i40" 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="i41" 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="i42" 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="i43" 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.389">BEAN_beansRequireDefaultConstructor</a></pre> -<div class="block"><b>Configuration property:</b> Beans require no-arg constructors. - <p> - <ul> - <li><b>Name:</b> <js>"BeanContext.beansRequireDefaultConstructor"</js> - <li><b>Data type:</b> <code>Boolean</code> - <li><b>Default:</b> <jk>false</jk> - </ul> - <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.404">BEAN_beansRequireSerializable</a></pre> -<div class="block"><b>Configuration property:</b> Beans 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. - <p> - <ul> - <li><b>Name:</b> <js>"BeanContext.beansRequireSerializable"</js> - <li><b>Data type:</b> <code>Boolean</code> - <li><b>Default:</b> <jk>false</jk> - </ul> - <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.418">BEAN_beansRequireSettersForGetters</a></pre> -<div class="block"><b>Configuration property:</b> Beans require setters for getters. - <p> - <ul> - <li><b>Name:</b> <js>"BeanContext.beansRequireSettersForGetters"</js> - <li><b>Data type:</b> <code>Boolean</code> - <li><b>Default:</b> <jk>false</jk> - </ul> - <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.433">BEAN_beansRequireSomeProperties</a></pre> -<div class="block"><b>Configuration property:</b> Beans require at least one property. - <p> - <ul> - <li><b>Name:</b> <js>"BeanContext.beansRequireSomeProperties"</js> - <li><b>Data type:</b> <code>Boolean</code> - <li><b>Default:</b> <jk>true</jk> - </ul> - <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 hre
<TRUNCATED>