public void setTypeResolver ( RelationshipResolver resolver , Class < ? > type ) { if ( resolver != null ) { String typeName = ReflectionUtils . getTypeName ( type ) ; if ( typeName != null ) { typedResolvers . put ( type , resolver ) ; } } }
Registers relationship resolver for given type . Resolver will be used if relationship resolution is enabled trough relationship annotation .