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:
java.beans.BeanInfo, java.io.Externalizable, java.io.Serializable

public class CompositeComponentBeanInfo
extends java.beans.SimpleBeanInfo
implements java.io.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: 881558 $ $Date: 2009-11-17 16:55:58 -0500 (Tue, 17 Nov 2009) $
Author:
Leonardo Uribe (latest modification by $Author: lu4242 $)
See Also:
Serialized Form

Field Summary
 
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(java.beans.BeanDescriptor descriptor)
           
 
Method Summary
 java.beans.BeanDescriptor getBeanDescriptor()
           
 java.beans.PropertyDescriptor[] getPropertyDescriptors()
           
 java.util.List<java.beans.PropertyDescriptor> getPropertyDescriptorsList()
           
 void readExternal(java.io.ObjectInput in)
           
 void setPropertyDescriptorsList(java.util.List<java.beans.PropertyDescriptor> descriptors)
           
 void writeExternal(java.io.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
 

Constructor Detail

CompositeComponentBeanInfo

public CompositeComponentBeanInfo()
Used for Serialization


CompositeComponentBeanInfo

public CompositeComponentBeanInfo(java.beans.BeanDescriptor descriptor)
Method Detail

getBeanDescriptor

public java.beans.BeanDescriptor getBeanDescriptor()
Specified by:
getBeanDescriptor in interface java.beans.BeanInfo
Overrides:
getBeanDescriptor in class java.beans.SimpleBeanInfo

getPropertyDescriptors

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

getPropertyDescriptorsList

public java.util.List<java.beans.PropertyDescriptor> getPropertyDescriptorsList()

setPropertyDescriptorsList

public void setPropertyDescriptorsList(java.util.List<java.beans.PropertyDescriptor> descriptors)

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

writeExternal

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


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