com.atlassian.crowd.integration.atlassianuser
Class CrowdClientHolder

java.lang.Object
  extended by com.atlassian.crowd.integration.atlassianuser.CrowdClientHolder

public class CrowdClientHolder
extends java.lang.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 Summary
CrowdClientHolder()
           
 
Method Summary
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 #refreshCache() will be called with a regular schedule.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CrowdClientHolder

public CrowdClientHolder()
Method Detail

getInstance

public static com.atlassian.crowd.service.client.CrowdClient getInstance()

getUserGroupCacheInstance

public static com.atlassian.crowd.integration.atlassianuser.UserGroupCache getUserGroupCacheInstance()

get

public static CrowdClientControl get()
Get the current instance, creating if if necessary.


peek

public static CrowdClientControl peek()
Get the current instance but do not create one if it doesn't already exist.


setScheduled

public static void setScheduled(boolean isScheduled)
Indicate whether or not #refreshCache() will be called with a regular schedule. If so, caches will not expire automatically.



Copyright © 2012 Atlassian. All Rights Reserved.