|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RepositoryConfiguration
Represents the configuration of a single repository, with defaults taken from atlassian-user-defaults.xml and override settings coming from atlassian-user.xml.
TODO: At the moment, properties like LDAP host names are retrieved viagetComponent(String) with a
special constant (like Configuration#HOST). Instead, these properties should be retrieved by
a getProperty(String) method on this object.
| Method Summary | |
|---|---|
void |
addComponent(java.lang.String componentName,
java.lang.Object component)
|
RepositoryAccessor |
configure()
|
CacheConfiguration |
getCacheConfiguration()
Returns the cache configuration for this repository. |
java.lang.Object |
getComponent(java.lang.String componentName)
Returns the component specified by the name, or null if the component does not exist. |
java.lang.String |
getComponentClassName(java.lang.String componentName)
|
java.util.Set |
getComponentNames()
|
RepositoryIdentifier |
getIdentifier()
|
java.lang.String |
getStringComponent(java.lang.String componentName)
Returns the component specified by the name, or null if the component does not exist. |
boolean |
hasClassForComponent(java.lang.String componentName)
|
boolean |
hasComponent(java.lang.String componentName)
Returns true if the component exists and is not null, otherwise false. |
boolean |
isCachingEnabled()
Returns true if caching is enabled for this repository, or false if caching is disabled. |
void |
setCacheConfiguration(CacheConfiguration cacheConfiguration)
Set the cache configuration to be used for this repository. |
| Method Detail |
|---|
RepositoryIdentifier getIdentifier()
void addComponent(java.lang.String componentName,
java.lang.Object component)
java.lang.Object getComponent(java.lang.String componentName)
java.lang.String getStringComponent(java.lang.String componentName)
java.lang.ClassCastException - if the specified component can not be cast to a Stringboolean hasComponent(java.lang.String componentName)
java.lang.String getComponentClassName(java.lang.String componentName)
RepositoryAccessor configure()
throws ConfigurationException
ConfigurationExceptionboolean hasClassForComponent(java.lang.String componentName)
java.util.Set getComponentNames()
void setCacheConfiguration(CacheConfiguration cacheConfiguration)
boolean isCachingEnabled()
getCacheConfiguration(),
setCacheConfiguration(CacheConfiguration)CacheConfiguration getCacheConfiguration()
isCachingEnabled() rather than
checking explicitly for null.
isCachingEnabled()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||