org.springframework.data.support
Class IsNewStrategyFactorySupport
java.lang.Object
org.springframework.data.support.IsNewStrategyFactorySupport
- All Implemented Interfaces:
- IsNewStrategyFactory
- Direct Known Subclasses:
- MappingContextIsNewStrategyFactory
public abstract class IsNewStrategyFactorySupport
- extends Object
- implements IsNewStrategyFactory
IsNewStrategyFactory
that handles Persistable
implementations directly by retuning a
PersistableIsNewStrategy
and delegating to doGetIsNewStrategy(Class)
for all other types.
- Since:
- 1.5
- Author:
- Oliver Gierke
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IsNewStrategyFactorySupport
public IsNewStrategyFactorySupport()
getIsNewStrategy
public final IsNewStrategy getIsNewStrategy(Class<?> type)
- Description copied from interface:
IsNewStrategyFactory
- Returns the
IsNewStrategy
to be used for the given type.
- Specified by:
getIsNewStrategy
in interface IsNewStrategyFactory
- Parameters:
type
- must not be null.
- Returns:
- the
IsNewStrategy
to be used for the given type, will never be null.
doGetIsNewStrategy
protected abstract IsNewStrategy doGetIsNewStrategy(Class<?> type)
- Determine the actual
IsNewStrategy
to be used for the given type.
- Parameters:
type
- will never be null.
- Returns:
- the
IsNewStrategy
to be used for the given type or null in case none can be resolved.
Copyright © 2011-2013-2013 Pivotal. All Rights Reserved.