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 Summary
Nested Classes Modifier and Type Class Description class
CompositeComponentBeanInfo.PropertyDescriptorMap
Read only map for fast access.
-
Field Summary
Fields Modifier and Type Field Description static String
PROPERTY_DESCRIPTOR_MAP_KEY
-
Fields inherited from interface java.beans.BeanInfo
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32
-
-
Constructor Summary
Constructors Constructor Description CompositeComponentBeanInfo()
Used for SerializationCompositeComponentBeanInfo(BeanDescriptor descriptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BeanDescriptor
getBeanDescriptor()
PropertyDescriptor[]
getPropertyDescriptors()
List<PropertyDescriptor>
getPropertyDescriptorsList()
Map<String,PropertyDescriptor>
getPropertyDescriptorsMap()
void
readExternal(ObjectInput in)
void
setPropertyDescriptorsList(List<PropertyDescriptor> descriptors)
void
writeExternal(ObjectOutput out)
-
Methods inherited from class java.beans.SimpleBeanInfo
getAdditionalBeanInfo, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors, loadImage
-
-
-
-
Field Detail
-
PROPERTY_DESCRIPTOR_MAP_KEY
public static final String PROPERTY_DESCRIPTOR_MAP_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CompositeComponentBeanInfo
public CompositeComponentBeanInfo()
Used for Serialization
-
CompositeComponentBeanInfo
public CompositeComponentBeanInfo(BeanDescriptor descriptor)
-
-
Method Detail
-
getBeanDescriptor
public BeanDescriptor getBeanDescriptor()
- Specified by:
getBeanDescriptor
in interfaceBeanInfo
- Overrides:
getBeanDescriptor
in classSimpleBeanInfo
-
getPropertyDescriptors
public PropertyDescriptor[] getPropertyDescriptors()
- Specified by:
getPropertyDescriptors
in interfaceBeanInfo
- Overrides:
getPropertyDescriptors
in classSimpleBeanInfo
-
getPropertyDescriptorsList
public List<PropertyDescriptor> getPropertyDescriptorsList()
-
setPropertyDescriptorsList
public void setPropertyDescriptorsList(List<PropertyDescriptor> descriptors)
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
getPropertyDescriptorsMap
public Map<String,PropertyDescriptor> getPropertyDescriptorsMap()
-
-