Top Description Inners Fields Constructors Methods
com.sun.faces.mgbean

public Class ManagedBeanBuilder

extends BeanBuilder
Class Inheritance
Imports
com.sun.faces.RIConstants, com.sun.faces.util.MessageUtils, javax.el.ExpressionFactory, javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.beans.BeanInfo, .IntrospectionException, .Introspector, .PropertyDescriptor, java.lang.reflect.Array, .InvocationTargetException, .Method, java.util.ArrayList, .HashMap, .List, .Map

This builder creates standard managed beans, i.e. beans that aren't List or Map instances.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class
private class
private class
private static interface
private static enum

Field Summary

Modifier and TypeField and Description
private List<ManagedBeanBuilder.BakedProperty>
Inherited from com.sun.faces.mgbean.BeanBuilder:
beanInfo

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv void
bake()

Overrides com.sun.faces.mgbean.BeanBuilder.bake.

Performs sanity checking of the ManagedBeanInfo instance provided when the BeanBuilder instance was created.
private void
private void
private void
protected void
private PropertyDescriptor
private ManagedBeanBuilder.PropertyType
Inherited from com.sun.faces.mgbean.BeanBuilder:
bakedbuilddestroygetBakedListgetBakedMapgetBeanClassgetDescriptionsgetManagedBeanInfogetMessagesgetReferencesgetScopehasMessagesinitListinitMapinjectResourcesinvokePostConstructisBakedloadClassnewBeanInstancequeueMessagequeueMessages

Field Detail

propertiesback to summary
private List<ManagedBeanBuilder.BakedProperty> properties

Constructor Detail

ManagedBeanBuilderback to summary
public ManagedBeanBuilder(ManagedBeanInfo beanInfo)

Method Detail

bakeback to summary
pack-priv void bake()

Overrides com.sun.faces.mgbean.BeanBuilder.bake.

Doc from com.sun.faces.mgbean.BeanBuilder.bake.

Performs sanity checking of the ManagedBeanInfo instance provided when the BeanBuilder instance was created. If any issues are found, queue messages which will be logged when first baked and exposed as exceptions at runtime per the spec.

Annotations
@Override
bakeBeanPropertyback to summary
private void bakeBeanProperty(ManagedBeanInfo.ManagedProperty property)
bakeListPropertyback to summary
private void bakeListProperty(ManagedBeanInfo.ManagedProperty property)
bakeMapPropertyback to summary
private void bakeMapProperty(ManagedBeanInfo.ManagedProperty property)
buildBeanback to summary
protected void buildBean(Object bean, FacesContext context)

Implements abstract com.sun.faces.mgbean.BeanBuilder.buildBean.

Annotations
@Override
getPropertyDescriptorback to summary
private PropertyDescriptor getPropertyDescriptor(String propertyName)
getPropertyTypeback to summary
private ManagedBeanBuilder.PropertyType getPropertyType(ManagedBeanInfo.ManagedProperty property)
com.sun.faces.mgbean back to summary

private Class ManagedBeanBuilder.BakedBeanProperty

extends Object
implements BakedProperty
Class Inheritance
All Implemented Interfaces
com.sun.faces.mgbean.ManagedBeanBuilder.BakedProperty

Field Summary

Modifier and TypeField and Description
private PropertyDescriptor
private String
private BeanBuilder.Expression

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

pdback to summary
private PropertyDescriptor pd
propertyNameback to summary
private String propertyName
valueback to summary
private BeanBuilder.Expression value

Constructor Detail

BakedBeanPropertyback to summary
pack-priv BakedBeanProperty(String propertyName, PropertyDescriptor pd, BeanBuilder.Expression value)

Method Detail

setback to summary
public void set(Object bean, FacesContext context)

Implements com.sun.faces.mgbean.ManagedBeanBuilder.BakedProperty.set.

Annotations
@Override
com.sun.faces.mgbean back to summary

private Class ManagedBeanBuilder.BakedListProperty

extends Object
implements BakedProperty
Class Inheritance
All Implemented Interfaces
com.sun.faces.mgbean.ManagedBeanBuilder.BakedProperty

Field Summary

Modifier and TypeField and Description
private List<BeanBuilder.Expression>
private PropertyDescriptor

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

listEntriesback to summary
private List<BeanBuilder.Expression> listEntries
pdback to summary
private PropertyDescriptor pd

Constructor Detail

BakedListPropertyback to summary
pack-priv BakedListProperty(List<BeanBuilder.Expression> listEntries, PropertyDescriptor pd)

Method Detail

setback to summary
public void set(Object bean, FacesContext context)

Implements com.sun.faces.mgbean.ManagedBeanBuilder.BakedProperty.set.

Annotations
@Override
com.sun.faces.mgbean back to summary

private Class ManagedBeanBuilder.BakedMapProperty

extends Object
implements BakedProperty
Class Inheritance
All Implemented Interfaces
com.sun.faces.mgbean.ManagedBeanBuilder.BakedProperty

Field Summary

Modifier and TypeField and Description
pack-priv Map<BeanBuilder.Expression, BeanBuilder.Expression>
pack-priv PropertyDescriptor

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

mapEntriesback to summary
pack-priv Map<BeanBuilder.Expression, BeanBuilder.Expression> mapEntries
pdback to summary
pack-priv PropertyDescriptor pd

Constructor Detail

BakedMapPropertyback to summary
pack-priv BakedMapProperty(Map<BeanBuilder.Expression, BeanBuilder.Expression> mapEntries, PropertyDescriptor pd)

Method Detail

setback to summary
public void set(Object bean, FacesContext context)

Implements com.sun.faces.mgbean.ManagedBeanBuilder.BakedProperty.set.

Annotations
@Override
com.sun.faces.mgbean back to summary

private Interface ManagedBeanBuilder.BakedProperty

Known Direct Implementers
com.sun.faces.mgbean.ManagedBeanBuilder.BakedMapProperty, com.sun.faces.mgbean.ManagedBeanBuilder.BakedListProperty, com.sun.faces.mgbean.ManagedBeanBuilder.BakedBeanProperty

Method Summary

Modifier and TypeMethod and Description
public void
set(Object bean, FacesContext context)

Method Detail

setback to summary
public void set(Object bean, FacesContext context)
com.sun.faces.mgbean back to summary

private final Enum ManagedBeanBuilder.PropertyType

extends Enum<ManagedBeanBuilder.PropertyType>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final ManagedBeanBuilder.PropertyType
public static final ManagedBeanBuilder.PropertyType
public static final ManagedBeanBuilder.PropertyType

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ManagedBeanBuilder.PropertyType
public static ManagedBeanBuilder.PropertyType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

BEANback to summary
public static final ManagedBeanBuilder.PropertyType BEAN
LISTback to summary
public static final ManagedBeanBuilder.PropertyType LIST
MAPback to summary
public static final ManagedBeanBuilder.PropertyType MAP

Constructor Detail

PropertyTypeback to summary
private PropertyType()

Method Detail

valueOfback to summary
public static ManagedBeanBuilder.PropertyType valueOf(String name)
valuesback to summary
public static ManagedBeanBuilder.PropertyType[] values()