Interface ReferenceResolverService
-
- All Superinterfaces:
ReferenceResolvers
- All Known Implementing Classes:
LinkedListReferenceResolverService
public interface ReferenceResolverService extends ReferenceResolvers
A service that resolvesReferenceResolvers
collection.- Author:
- Carl Harris
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
resolve(Class<?> type, ViewEntity reference)
Resolves the given reference entity using the first resolver that claims to support the given type.-
Methods inherited from interface org.soulwing.prospecto.api.reference.ReferenceResolvers
append, prepend, toList
-
-
-
-
Method Detail
-
resolve
Object resolve(Class<?> type, ViewEntity reference)
Resolves the given reference entity using the first resolver that claims to support the given type.- Parameters:
type
- the subject model typereference
- the subject reference entity- Returns:
- solved value
- Throws:
ReferenceResolverNotFoundException
- if no resolver claims to support the given type
-
-