org.apache.myfaces.view.facelets.tag.composite
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: 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompositeComponentBeanInfo
public CompositeComponentBeanInfo()
- Used for Serialization
CompositeComponentBeanInfo
public CompositeComponentBeanInfo(BeanDescriptor descriptor)
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
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.