Interface AssociationManagerService
-
- All Superinterfaces:
AssociationManagers
- All Known Implementing Classes:
LinkedListAssociationManagerService
public interface AssociationManagerService extends AssociationManagers
A collection manager service.- Author:
- Carl Harris
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <M extends AssociationManager>
MfindManager(Class<M> managerClass, AssociationDescriptor descriptor)
Finds the appropriate collection manager for the given owner type and element type.-
Methods inherited from interface org.soulwing.prospecto.api.association.AssociationManagers
append, prepend, remove, toList
-
-
-
-
Method Detail
-
findManager
<M extends AssociationManager> M findManager(Class<M> managerClass, AssociationDescriptor descriptor)
Finds the appropriate collection manager for the given owner type and element type.Registered managers are consulted in order. The first manager that claims to support the given descriptor is returned.
- Parameters:
managerClass
- manager classdescriptor
- association descriptor- Returns:
- manager or
null
if no manager claims to support the given association
-
-