public class ApplicationServicesRegistry extends Object
setRememberMeService(RememberMeService)
Once host application registers a service Seraph will use the registered service. Host application may chose not to register a service,
in such case Seraph will use default Noop implementation of it. E.g. if a host application does not set a RememberMeService through
setRememberMeService(RememberMeService) Seraph will use a NoopRememberMeService implementation of RememberMeService.
If in the future Seraph defines new SPIs and expects host application to provide implementations for them then this class will have to add
setters and getters definitions for new interfaces.| Constructor and Description |
|---|
ApplicationServicesRegistry() |
| Modifier and Type | Method and Description |
|---|---|
static RememberMeService |
getRememberMeService()
Returns a RememberMeService that was set by an application via
setRememberMeService(RememberMeService)
or a NoopRememberMeService if application has not set one. |
static void |
setRememberMeService(RememberMeService rememberMeService)
This method provides the ability for a host application to set an implementation of
RememberMeService for Seraph to use. |
public static void setRememberMeService(RememberMeService rememberMeService)
RememberMeService for Seraph to use.
If host application does not set its implementation of RememberMeService Seraph will use a NoopRememberMeService.rememberMeService - the RememberMeService implemenation for Seraph to use.IllegalArgumentException - if argument is nullpublic static RememberMeService getRememberMeService()
setRememberMeService(RememberMeService)
or a NoopRememberMeService if application has not set one. Will never return null.RememberMeService or NoopRememberMeService if an application has not set one.Copyright © 2018 Atlassian. All rights reserved.