- java.lang.Object
-
- ch.qos.logback.core.spi.ContextAwareBase
-
- ch.qos.logback.core.joran.util.AggregationAssessor
-
- All Implemented Interfaces:
ContextAware
public class AggregationAssessor extends ContextAwareBase
Various utility methods for computing theAggregationTypeof a given property or the class name of a property given implicit rules.This class was extracted from
PropertySetter.- Since:
- 1.5.1
-
-
Field Summary
Fields Modifier and Type Field Description protected BeanDescriptionbeanDescriptionprotected Class<?>objClass-
Fields inherited from class ch.qos.logback.core.spi.ContextAwareBase
context
-
-
Constructor Summary
Constructors Constructor Description AggregationAssessor(BeanDescriptionCache beanDescriptionCache, Class objClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AggregationTypecomputeAggregationType(String name)Given a property name, this method computes/assessesAggregationTypefor the property for the class passed to the constructor.MethodfindAdderMethod(String name)MethodfindSetterMethod(String name)Class<?>getClassNameViaImplicitRules(String name, AggregationType aggregationType, DefaultNestedComponentRegistry registry)-
Methods inherited from class ch.qos.logback.core.spi.ContextAwareBase
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
-
-
-
-
Field Detail
-
beanDescription
protected final BeanDescription beanDescription
-
-
Constructor Detail
-
AggregationAssessor
public AggregationAssessor(BeanDescriptionCache beanDescriptionCache, Class objClass)
-
-
Method Detail
-
computeAggregationType
public AggregationType computeAggregationType(String name)
Given a property name, this method computes/assessesAggregationTypefor the property for the class passed to the constructor.- Parameters:
name-- Returns:
- the computed
AggregationType
-
findAdderMethod
public Method findAdderMethod(String name)
-
findSetterMethod
public Method findSetterMethod(String name)
-
getClassNameViaImplicitRules
public Class<?> getClassNameViaImplicitRules(String name, AggregationType aggregationType, DefaultNestedComponentRegistry registry)
-
-