com.atlassian.greenhopper.user
Class UserPropertyCacheAdapterFactory

java.lang.Object
  extended by com.atlassian.greenhopper.user.UserPropertyCacheAdapterFactory

@Service
public class UserPropertyCacheAdapterFactory
extends java.lang.Object

Use this class to construct the appropriate UserPropertyCacheAdapter for the current JIRA instance.


Constructor Summary
UserPropertyCacheAdapterFactory()
           
 
Method Summary
 UserPropertyCacheAdapter create()
          Note -- rather than throwing exceptions, this will return a no-op adapter if we cannot construct a real one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserPropertyCacheAdapterFactory

public UserPropertyCacheAdapterFactory()
Method Detail

create

@Nonnull
public UserPropertyCacheAdapter create()
Note -- rather than throwing exceptions, this will return a no-op adapter if we cannot construct a real one. This is because this is used in upgrade tasks, and we don't want to fail the upgrade task if we cannot clear some caches.

Returns:
an adapter; never null


Copyright © 2007-2014 Atlassian. All Rights Reserved.