Class InstantiationAwarePropertyAccessorFactory
java.lang.Object
org.springframework.data.mapping.model.InstantiationAwarePropertyAccessorFactory
- All Implemented Interfaces:
PersistentPropertyAccessorFactory
public class InstantiationAwarePropertyAccessorFactory
extends Object
implements PersistentPropertyAccessorFactory
Delegating
PersistentPropertyAccessorFactory decorating the PersistentPropertyAccessors created with
an InstantiationAwarePropertyAccessor to allow the handling of purely immutable types.- Since:
- 2.3
- Author:
- Oliver Drotbohm, Mark Paluch
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiationAwarePropertyAccessorFactory(PersistentPropertyAccessorFactory delegate, EntityInstantiators instantiators) -
Method Summary
Modifier and TypeMethodDescription<T> PersistentPropertyAccessor<T>getPropertyAccessor(PersistentEntity<?, ?> entity, T bean) booleanisSupported(PersistentEntity<?, ?> entity) Returns whether givenPersistentEntityis supported by thisPersistentPropertyAccessorFactory.
-
Constructor Details
-
InstantiationAwarePropertyAccessorFactory
public InstantiationAwarePropertyAccessorFactory(PersistentPropertyAccessorFactory delegate, EntityInstantiators instantiators)
-
-
Method Details
-
getPropertyAccessor
Description copied from interface:PersistentPropertyAccessorFactory- Specified by:
getPropertyAccessorin interfacePersistentPropertyAccessorFactory- Parameters:
entity- must not be null.bean- must not be null.- Returns:
- will never be null.
-
isSupported
Description copied from interface:PersistentPropertyAccessorFactoryReturns whether givenPersistentEntityis supported by thisPersistentPropertyAccessorFactory.- Specified by:
isSupportedin interfacePersistentPropertyAccessorFactory- Parameters:
entity- must not be null.- Returns:
-