@Service public class UserDirectoryServiceProviderManager extends Object
UserDirectoryServiceProvider beans and will return the specific provider that
matches a UserDirectory.| Constructor and Description |
|---|
UserDirectoryServiceProviderManager(Collection<UserDirectoryServiceProvider> userDirectoryServiceProviders) |
| Modifier and Type | Method and Description |
|---|---|
UserDirectoryServiceProvider |
getServiceProvider(Class<? extends UserDirectory> userDirectoryClass)
Get a
UserDirectoryServiceProvider for the given user directory type. |
UserDirectoryServiceProvider |
getServiceProvider(@NonNull UserDirectory userDirectory)
Alternative for
getServiceProvider(Class) with a non-null instance. |
@Autowired public UserDirectoryServiceProviderManager(Collection<UserDirectoryServiceProvider> userDirectoryServiceProviders)
public UserDirectoryServiceProvider getServiceProvider(@NonNull @NonNull UserDirectory userDirectory)
getServiceProvider(Class) with a non-null instance.
This method can return null if no provider is available, but this usually
constitutes a configuration problem.userDirectory - instancenull if none availablepublic UserDirectoryServiceProvider getServiceProvider(Class<? extends UserDirectory> userDirectoryClass)
UserDirectoryServiceProvider for the given user directory type.
This method can return null if no provider is available, but this usually
constitutes a configuration problem.userDirectoryClass - type of the user directorynull if none availableCopyright © 2020. All rights reserved.