Spring Data Commons

org.springframework.data.mapping.model
Class PreferredConstructorDiscoverer<T,P extends PersistentProperty<P>>

java.lang.Object
  extended by org.springframework.data.mapping.model.PreferredConstructorDiscoverer<T,P>

public class PreferredConstructorDiscoverer<T,P extends PersistentProperty<P>>
extends Object

Helper class to find a PreferredConstructor.

Author:
Oliver Gierke

Constructor Summary
  PreferredConstructorDiscoverer(Class<T> type)
          Creates a new PreferredConstructorDiscoverer for the given type.
  PreferredConstructorDiscoverer(PersistentEntity<T,P> entity)
          Creates a new PreferredConstructorDiscoverer for the given PersistentEntity.
protected PreferredConstructorDiscoverer(TypeInformation<T> type, PersistentEntity<T,P> entity)
          Creates a new PreferredConstructorDiscoverer for the given type.
 
Method Summary
 PreferredConstructor<T,P> getConstructor()
          Returns the discovered PreferredConstructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreferredConstructorDiscoverer

public PreferredConstructorDiscoverer(Class<T> type)
Creates a new PreferredConstructorDiscoverer for the given type.

Parameters:
type - must not be null.

PreferredConstructorDiscoverer

public PreferredConstructorDiscoverer(PersistentEntity<T,P> entity)
Creates a new PreferredConstructorDiscoverer for the given PersistentEntity.

Parameters:
entity - must not be null.

PreferredConstructorDiscoverer

protected PreferredConstructorDiscoverer(TypeInformation<T> type,
                                         PersistentEntity<T,P> entity)
Creates a new PreferredConstructorDiscoverer for the given type.

Parameters:
type - must not be null.
entity -
Method Detail

getConstructor

public PreferredConstructor<T,P> getConstructor()
Returns the discovered PreferredConstructor.

Returns:

Spring Data Commons

Copyright © 2012. All Rights Reserved.