Class CompositeComponentBeanInfo
- java.lang.Object
- 
- java.beans.SimpleBeanInfo
- 
- org.apache.myfaces.view.facelets.tag.composite.CompositeComponentBeanInfo
 
 
- 
- All Implemented Interfaces:
- BeanInfo,- Externalizable,- Serializable
 
 public class CompositeComponentBeanInfo extends SimpleBeanInfo implements Externalizable Implementation of BeanInfo object used by composite components. Instances of this class are found on component attribute map using the key UIComponent.BEANINFO_KEY. The points to take into account for implement this class are this: - The following tags: composite:interface composite:attribute composite:facet composite:valueHolder composite:editableValueHolder composite:actionSource composite:extension must deal with this class, so it is expected methods that manipulate data here are called from their tag handlers. - ViewDeclarationLanguage.retargetAttachedObjects and ViewDeclarationLanguage.retargetMethodExpressions read information contained here - This object goes on attribute map, so it is necessary that this instance should be Serializable. But note that BeanDescriptor is not, so the best way is implements Externalizable interface and implement its methods. The only information we need to be Serializable from this object is the related to BeanDescriptor, but note that serialize information used only in build view time ( like AttachedObjectTarget.ATTACHED_OBJECT_TARGETS_KEY list) is not required and could cause serialization exceptions.- Version:
- $Revision$ $Date$
- Author:
- Leonardo Uribe (latest modification by $Author$)
- See Also:
- Serialized Form
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description classCompositeComponentBeanInfo.PropertyDescriptorMapRead only map for fast access.
 - 
Field SummaryFields Modifier and Type Field Description static StringPROPERTY_DESCRIPTOR_MAP_KEY- 
Fields inherited from interface java.beans.BeanInfoICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32
 
- 
 - 
Constructor SummaryConstructors Constructor Description CompositeComponentBeanInfo()Used for SerializationCompositeComponentBeanInfo(BeanDescriptor descriptor)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description BeanDescriptorgetBeanDescriptor()PropertyDescriptor[]getPropertyDescriptors()List<PropertyDescriptor>getPropertyDescriptorsList()Map<String,PropertyDescriptor>getPropertyDescriptorsMap()voidreadExternal(ObjectInput in)voidsetPropertyDescriptorsList(List<PropertyDescriptor> descriptors)voidwriteExternal(ObjectOutput out)- 
Methods inherited from class java.beans.SimpleBeanInfogetAdditionalBeanInfo, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors, loadImage
 
- 
 
- 
- 
- 
Field Detail- 
PROPERTY_DESCRIPTOR_MAP_KEYpublic static final String PROPERTY_DESCRIPTOR_MAP_KEY - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
CompositeComponentBeanInfopublic CompositeComponentBeanInfo() Used for Serialization
 - 
CompositeComponentBeanInfopublic CompositeComponentBeanInfo(BeanDescriptor descriptor) 
 
- 
 - 
Method Detail- 
getBeanDescriptorpublic BeanDescriptor getBeanDescriptor() - Specified by:
- getBeanDescriptorin interface- BeanInfo
- Overrides:
- getBeanDescriptorin class- SimpleBeanInfo
 
 - 
getPropertyDescriptorspublic PropertyDescriptor[] getPropertyDescriptors() - Specified by:
- getPropertyDescriptorsin interface- BeanInfo
- Overrides:
- getPropertyDescriptorsin class- SimpleBeanInfo
 
 - 
getPropertyDescriptorsListpublic List<PropertyDescriptor> getPropertyDescriptorsList() 
 - 
setPropertyDescriptorsListpublic void setPropertyDescriptorsList(List<PropertyDescriptor> descriptors) 
 - 
readExternalpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException - Specified by:
- readExternalin interface- Externalizable
- Throws:
- IOException
- ClassNotFoundException
 
 - 
writeExternalpublic void writeExternal(ObjectOutput out) throws IOException - Specified by:
- writeExternalin interface- Externalizable
- Throws:
- IOException
 
 - 
getPropertyDescriptorsMappublic Map<String,PropertyDescriptor> getPropertyDescriptorsMap() 
 
- 
 
-