org.apache.myfaces.view.facelets.tag.composite
Class CompositeComponentBeanInfo

java.lang.Object
  extended by java.beans.SimpleBeanInfo
      extended by 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: 1402825 $ $Date: 2012-10-27 12:09:22 -0500 (Sat, 27 Oct 2012) $
Author:
Leonardo Uribe (latest modification by $Author: lu4242 $)
See Also:
Serialized Form

Nested Class Summary
 class CompositeComponentBeanInfo.PropertyDescriptorMap
          Read only map for fast access.
 
Field Summary
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
CompositeComponentBeanInfo()
          Used for Serialization
CompositeComponentBeanInfo(BeanDescriptor descriptor)
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface BeanInfo
Overrides:
getBeanDescriptor in class SimpleBeanInfo

getPropertyDescriptors

public PropertyDescriptor[] getPropertyDescriptors()
Specified by:
getPropertyDescriptors in interface BeanInfo
Overrides:
getPropertyDescriptors in class SimpleBeanInfo

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 interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

getPropertyDescriptorsMap

public Map<String,PropertyDescriptor> getPropertyDescriptorsMap()


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.