public class ClassGeneratingPropertyAccessorFactory extends Object implements PersistentPropertyAccessorFactory
PersistentEntity
's
PersistentProperty
to discover the access to properties. Properties are accessed either using method handles
to overcome Java visibility issues or directly using field access/getter/setter calls.Constructor and Description |
---|
ClassGeneratingPropertyAccessorFactory() |
Modifier and Type | Method and Description |
---|---|
<T> PersistentPropertyAccessor<T> |
getPropertyAccessor(PersistentEntity<?,?> entity,
T bean)
|
boolean |
isSupported(PersistentEntity<?,?> entity)
Checks whether an accessor class can be generated.
|
public ClassGeneratingPropertyAccessorFactory()
public <T> PersistentPropertyAccessor<T> getPropertyAccessor(PersistentEntity<?,?> entity, T bean)
PersistentPropertyAccessorFactory
getPropertyAccessor
in interface PersistentPropertyAccessorFactory
entity
- must not be null.bean
- must not be null.public boolean isSupported(PersistentEntity<?,?> entity)
isSupported
in interface PersistentPropertyAccessorFactory
entity
- must not be null.PersistentPropertyAccessorFactory.isSupported(PersistentEntity)
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.