PersistentEntity.isNew(Object)
@Deprecated public class CachingIsNewStrategyFactory extends Object implements IsNewStrategyFactory
IsNewStrategyFactory
that caches resolved IsNewStrategy
instances per type to avoid re-resolving them
on each and every request.Constructor and Description |
---|
CachingIsNewStrategyFactory(@NonNull IsNewStrategyFactory delegate)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
IsNewStrategy |
getIsNewStrategy(Class<?> type)
Deprecated.
Returns the
IsNewStrategy to be used for the given type. |
public CachingIsNewStrategyFactory(@NonNull @NonNull IsNewStrategyFactory delegate)
public IsNewStrategy getIsNewStrategy(Class<?> type)
IsNewStrategyFactory
IsNewStrategy
to be used for the given type.getIsNewStrategy
in interface IsNewStrategyFactory
type
- must not be null.IsNewStrategy
to be used for the given type, will never be null.Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.