Spring Data Core

org.springframework.data.support
Class IsNewStrategyFactorySupport

java.lang.Object
  extended by 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

Constructor Summary
IsNewStrategyFactorySupport()
           
 
Method Summary
protected abstract  IsNewStrategy doGetIsNewStrategy(Class<?> type)
          Determine the actual IsNewStrategy to be used for the given type.
 IsNewStrategy getIsNewStrategy(Class<?> type)
          Returns the IsNewStrategy to be used for the given type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IsNewStrategyFactorySupport

public IsNewStrategyFactorySupport()
Method Detail

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.

Spring Data Core

Copyright © 2011-2013-2013 Pivotal. All Rights Reserved.