|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.microsoft.tfs.core.config.persistence.DefaultPersistenceStoreProvider
public class DefaultPersistenceStoreProvider
A default implementation of the PersistenceStoreProvider
interface
that uses standard discovery mechanisms (common with Visual Studio) to locate
the cache and configuration file directories.
This class is a singleton. Access the instance through INSTANCE
.
PersistenceStoreProvider
Field Summary | |
---|---|
protected static java.lang.String |
APPLICATION_NAME
|
protected static java.lang.String |
CACHE_CHILD_NAME
|
protected static java.lang.String |
CONFIGURATION_CHILD_NAME
|
static DefaultPersistenceStoreProvider |
INSTANCE
Singleton instance of this class. |
protected static java.lang.String |
LOG_CHILD_NAME
|
protected static java.lang.String |
VENDOR_NAME
|
protected static java.lang.String |
VERSION
|
Constructor Summary | |
---|---|
protected |
DefaultPersistenceStoreProvider()
Most uses of this class should be through the static INSTANCE
field. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
FilesystemPersistenceStore |
getCachePersistenceStore()
Gets the PersistenceStore for storing cache information. |
FilesystemPersistenceStore |
getConfigurationPersistenceStore()
Gets the PersistenceStore for storing non-cache configuration
information. |
FilesystemPersistenceStore |
getLogPersistenceStore()
Gets the PersistenceStore for storing log files. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String VENDOR_NAME
"Microsoft"
protected static final java.lang.String APPLICATION_NAME
"Team Foundation"
protected static final java.lang.String VERSION
"4.0"
protected static final java.lang.String CACHE_CHILD_NAME
"Cache"
protected static final java.lang.String CONFIGURATION_CHILD_NAME
"Configuration"
protected static final java.lang.String LOG_CHILD_NAME
"Logs"
public static final DefaultPersistenceStoreProvider INSTANCE
Constructor Detail |
---|
protected DefaultPersistenceStoreProvider()
INSTANCE
field.
Not private to permit subclassing.
Method Detail |
---|
public FilesystemPersistenceStore getCachePersistenceStore()
Gets the PersistenceStore
for storing cache information. Cache
information is information that can be re-created from server data but
improves performance to have it locally.
Returns cachePersistenceStore
.
getCachePersistenceStore
in interface PersistenceStoreProvider
FilesystemPersistenceStore
object for storing cache
data, never null
public FilesystemPersistenceStore getConfigurationPersistenceStore()
Gets the PersistenceStore
for storing non-cache configuration
information. User configuration information is unlike cache information
in that it cannot be recreated without input from the user.
Returns configurationPersistenceStore
.
getConfigurationPersistenceStore
in interface PersistenceStoreProvider
FilesystemPersistenceStore
object for storing non-cache
configuration data, never null
public FilesystemPersistenceStore getLogPersistenceStore()
Gets the PersistenceStore
for storing log files. Returning
null
disables logging to files.
Returns #LOG_PERSISTENCE_STORE
.
getLogPersistenceStore
in interface PersistenceStoreProvider
FilesystemPersistenceStore
object for storing non-cache
configuration data, null
to disable storing log
files on diskpublic boolean equals(java.lang.Object obj)
Computed using only values returned by public methods. Suitable for derived classes which only modify the values returned by public methods.
equals
in class java.lang.Object
public int hashCode()
Computed using ony values returned by public methods. Suitable for derived classes which only modify the values returned by public methods.
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |