Class PropertyExtractors

java.lang.Object
org.apache.juneau.junit.bct.PropertyExtractors

public class PropertyExtractors extends Object
Collection of standard property extractor implementations for the Bean-Centric Testing framework.

This class provides the built-in property extraction strategies that handle the most common object types and property access patterns. These extractors are automatically registered when using BasicBeanConverter.Builder.defaultSettings().

Extractor Hierarchy:

The extractors form an inheritance hierarchy for code reuse:

Execution Order:

In BasicBeanConverter, the extractors are tried in this order:

  1. Custom extractors - User-registered extractors via BasicBeanConverter.Builder.addPropertyExtractor(PropertyExtractor)
  2. PropertyExtractors.ObjectPropertyExtractor - JavaBean properties, fields, and methods
  3. PropertyExtractors.ListPropertyExtractor - Array/collection indices and size properties
  4. PropertyExtractors.MapPropertyExtractor - Map key access and size property
Property Access Strategy:

Each extractor implements a comprehensive fallback strategy for maximum compatibility:

See Also: