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 PersistentPropertyAccessor
s created with
an InstantiationAwarePropertyAccessor
to allow the handling of purely immutable types.- Since:
- 2.3
- Author:
- Oliver Drotbohm, Mark Paluch
-
Constructor Summary
ConstructorDescriptionInstantiationAwarePropertyAccessorFactory
(PersistentPropertyAccessorFactory delegate, EntityInstantiators instantiators) -
Method Summary
Modifier and TypeMethodDescription<T> PersistentPropertyAccessor<T>
getPropertyAccessor
(PersistentEntity<?, ?> entity, T bean) boolean
isSupported
(PersistentEntity<?, ?> entity) Returns whether givenPersistentEntity
is supported by thisPersistentPropertyAccessorFactory
.
-
Constructor Details
-
InstantiationAwarePropertyAccessorFactory
public InstantiationAwarePropertyAccessorFactory(PersistentPropertyAccessorFactory delegate, EntityInstantiators instantiators)
-
-
Method Details
-
getPropertyAccessor
Description copied from interface:PersistentPropertyAccessorFactory
- Specified by:
getPropertyAccessor
in interfacePersistentPropertyAccessorFactory
- Parameters:
entity
- must not be null.bean
- must not be null.- Returns:
- will never be null.
-
isSupported
Description copied from interface:PersistentPropertyAccessorFactory
Returns whether givenPersistentEntity
is supported by thisPersistentPropertyAccessorFactory
.- Specified by:
isSupported
in interfacePersistentPropertyAccessorFactory
- Parameters:
entity
- must not be null.- Returns:
-