public interface PreferredConstructorDiscoverer<T,P extends PersistentProperty<P>>
PreferredConstructor
.Modifier and Type | Interface and Description |
---|---|
static class |
PreferredConstructorDiscoverer.Discoverers
Helper class to find a
PreferredConstructor . |
Modifier and Type | Method and Description |
---|---|
static <T,P extends PersistentProperty<P>> |
discover(Class<T> type)
Discovers the
PreferredConstructor for the given type. |
static <T,P extends PersistentProperty<P>> |
discover(PersistentEntity<T,P> entity)
Discovers the
PreferredConstructorDiscoverer for the given PersistentEntity . |
@Nullable static <T,P extends PersistentProperty<P>> PreferredConstructor<T,P> discover(Class<T> type)
PreferredConstructor
for the given type.type
- must not be null.PreferredConstructor
if found or null.@Nullable static <T,P extends PersistentProperty<P>> PreferredConstructor<T,P> discover(PersistentEntity<T,P> entity)
PreferredConstructorDiscoverer
for the given PersistentEntity
.entity
- must not be null.PreferredConstructor
if found or null.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.