Class BeanDescription
- java.lang.Object
-
- ch.qos.logback.core.joran.util.beans.BeanDescription
-
public class BeanDescription extends Object
Lightweight pendant to the java.beans.BeanInfo class. An instance of this class encapsulates the properties of a certain class. The properties are the public setters and getters. In addition the 'add-er'-methods are included, which are the public methods which start with the prefix 'add'.- Author:
- urechm
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBeanDescription(Class<?> clazz, Map<String,Method> propertyNameToGetter, Map<String,Method> propertyNameToSetter, Map<String,Method> propertyNameToAdder)Scope protected since only theBeanDescriptionFactorymust create BeanDescriptions in order to guarantee consistency between the given parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodgetAdder(String propertyName)Class<?>getClazz()MethodgetGetter(String propertyName)Map<String,Method>getPropertyNameToAdder()Map<String,Method>getPropertyNameToGetter()Map<String,Method>getPropertyNameToSetter()MethodgetSetter(String propertyName)
-
-
-
Constructor Detail
-
BeanDescription
protected BeanDescription(Class<?> clazz, Map<String,Method> propertyNameToGetter, Map<String,Method> propertyNameToSetter, Map<String,Method> propertyNameToAdder)
Scope protected since only theBeanDescriptionFactorymust create BeanDescriptions in order to guarantee consistency between the given parameters.- Parameters:
clazz- of the bean.propertyNameToGetter- map of property names to the associated getter.propertyNameToSetter- map of property names to the associated setter.propertyNameToAdder- map of property names to the associated adder.
-
-
Method Detail
-
getClazz
public Class<?> getClazz()
-
-