|
||||||||||
| 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(String componentName,
Object component)
|
RepositoryAccessor |
configure()
|
CacheConfiguration |
getCacheConfiguration()
Returns the cache configuration for this repository. |
Object |
getComponent(String componentName)
Returns the component specified by the name, or null if the component does not exist. |
String |
getComponentClassName(String componentName)
|
Set |
getComponentNames()
|
RepositoryIdentifier |
getIdentifier()
|
String |
getStringComponent(String componentName)
Returns the component specified by the name, or null if the component does not exist. |
boolean |
hasClassForComponent(String componentName)
|
boolean |
hasComponent(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(String componentName,
Object component)
Object getComponent(String componentName)
String getStringComponent(String componentName)
ClassCastException - if the specified component can not be cast to a Stringboolean hasComponent(String componentName)
String getComponentClassName(String componentName)
RepositoryAccessor configure()
throws ConfigurationException
ConfigurationExceptionboolean hasClassForComponent(String componentName)
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 | |||||||||