public class CrowdClientHolder extends Object
A holder for the current RestCrowdClient
and UserGroupCache
.
These will be used when a CrowdClient
implementation is not available in the Spring
context.
When the configuration directory changes and a new instance needs to be created it will take care of disposing the old instance.
Constructor and Description |
---|
CrowdClientHolder() |
Modifier and Type | Method and Description |
---|---|
static CrowdClientControl |
get()
Get the current instance, creating if if necessary.
|
static com.atlassian.crowd.service.client.CrowdClient |
getInstance() |
static com.atlassian.crowd.integration.atlassianuser.UserGroupCache |
getUserGroupCacheInstance() |
static CrowdClientControl |
peek()
Get the current instance but do not create one if it doesn't already exist.
|
static void |
setScheduled(boolean isScheduled)
Indicate whether or not
CrowdClientControl.refreshCache() will be called with a regular schedule. |
public static com.atlassian.crowd.service.client.CrowdClient getInstance()
public static com.atlassian.crowd.integration.atlassianuser.UserGroupCache getUserGroupCacheInstance()
public static CrowdClientControl get()
public static CrowdClientControl peek()
public static void setScheduled(boolean isScheduled)
CrowdClientControl.refreshCache()
will be called with a regular schedule. If so,
caches will not expire automatically.Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.