org.jboss.beans.info.plugins
Class FieldBeanInfo

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.beans.info.plugins.AbstractBeanInfo
          extended by org.jboss.beans.info.plugins.FieldBeanInfo
All Implemented Interfaces:
Cloneable, BeanInfo, org.jboss.util.JBossInterface
Direct Known Subclasses:
AllBeanInfo

public class FieldBeanInfo
extends AbstractBeanInfo

Field bean info.

Author:
Ales Justin
See Also:
BeanAccessMode.FIELDS

Field Summary
protected  Map<String,FieldInfo> fieldsByName
          The fields
 
Fields inherited from class org.jboss.beans.info.plugins.AbstractBeanInfo
classAdapter
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, log, toString
 
Constructor Summary
FieldBeanInfo(BeanInfoFactory beanInfoFactory, ClassAdapter classAdapter, Set<PropertyInfo> properties, Set<ConstructorInfo> constructors, Set<MethodInfo> methods, Set<EventInfo> events)
           
 
Method Summary
protected  FieldInfo getField(String name)
          Get a property
protected  org.jboss.beans.info.plugins.FieldFilter getFieldFilter()
          Get the field filter.
protected static Set<FieldInfo> getFields(ClassInfo classInfo, org.jboss.beans.info.plugins.FieldFilter filter)
          Get the fields
protected  PropertyInfo replaceProperty(PropertyInfo original)
          Do we need to replace property due to access mode.
protected  void setFields(Set<FieldInfo> fields)
          Set fields
 void setProperties(Set<PropertyInfo> properties)
          Set the property information.
 
Methods inherited from class org.jboss.beans.info.plugins.AbstractBeanInfo
addProperty, equals, findPropertyInfo, getBeanInfoFactory, getClassInfo, getConstructors, getEvents, getHashCode, getJoinpointFactory, getMethods, getName, getProperties, getProperty, getProperty, invoke, invoke, invoke, invoke, invokeStatic, invokeStatic, invokeStatic, invokeStatic, newInstance, newInstance, newInstance, newInstance, replaceAndAddProperty, setConstructors, setEvents, setMethods, setProperty, toShortString, toString
 
Methods inherited from class org.jboss.util.JBossObject
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, hashCode, list, notEqual, toShortString, toString, toStringImplementation
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.util.JBossInterface
clone, toShortString
 

Field Detail

fieldsByName

protected Map<String,FieldInfo> fieldsByName
The fields

Constructor Detail

FieldBeanInfo

public FieldBeanInfo(BeanInfoFactory beanInfoFactory,
                     ClassAdapter classAdapter,
                     Set<PropertyInfo> properties,
                     Set<ConstructorInfo> constructors,
                     Set<MethodInfo> methods,
                     Set<EventInfo> events)
Method Detail

setProperties

public void setProperties(Set<PropertyInfo> properties)
Description copied from interface: BeanInfo
Set the property information.

Specified by:
setProperties in interface BeanInfo
Overrides:
setProperties in class AbstractBeanInfo
Parameters:
properties - a Set

replaceProperty

protected PropertyInfo replaceProperty(PropertyInfo original)
Description copied from class: AbstractBeanInfo
Do we need to replace property due to access mode. By default we don't do anything, returning original.

Overrides:
replaceProperty in class AbstractBeanInfo
Parameters:
original - the original property
Returns:
replaced property or original if no replacement neccessary

setFields

protected void setFields(Set<FieldInfo> fields)
Set fields

Parameters:
fields - the fields

getField

protected FieldInfo getField(String name)
Get a property

Parameters:
name - the property name
Returns:
the property
Throws:
IllegalArgumentException - if there is no such property

getFields

protected static Set<FieldInfo> getFields(ClassInfo classInfo,
                                          org.jboss.beans.info.plugins.FieldFilter filter)
Get the fields

Parameters:
classInfo - the class info
filter - the field filter
Returns:
the fields

getFieldFilter

protected org.jboss.beans.info.plugins.FieldFilter getFieldFilter()
Get the field filter.

Returns:
the field filter


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.