public class CompositePropertyFactory extends Object implements PropertyFactory
Constructor and Description |
---|
CompositePropertyFactory() |
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(EntityDescriptor descriptor,
Field field)
Determines if the given field is handled by this property factory.
|
void |
create(EntityDescriptor descriptor,
AccessPath accessPath,
Field field,
Consumer<Property> propertyConsumer)
Computes a
Property for the given field. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPriority
public boolean accepts(EntityDescriptor descriptor, Field field)
PropertyFactory
accepts
in interface PropertyFactory
descriptor
- the current descriptorfield
- the field to create a property frompublic void create(EntityDescriptor descriptor, AccessPath accessPath, Field field, Consumer<Property> propertyConsumer)
PropertyFactory
Property
for the given field.create
in interface PropertyFactory
descriptor
- the descriptor to which the property will belongaccessPath
- the accesspath used to reach the given propertyfield
- the field to create a property frompropertyConsumer
- the consumer which is used to process created propertiesCopyright © 2018. All rights reserved.