|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.user.configuration.DefaultRepositoryConfiguration
public class DefaultRepositoryConfiguration
| Field Summary | |
|---|---|
protected org.apache.log4j.Logger |
logger
|
| Constructor Summary | |
|---|---|
DefaultRepositoryConfiguration(RepositoryIdentifier identifier,
RepositoryProcessor processor,
Map<String,String> components,
Map componentClassNames)
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.apache.log4j.Logger logger
| Constructor Detail |
|---|
public DefaultRepositoryConfiguration(RepositoryIdentifier identifier,
RepositoryProcessor processor,
Map<String,String> components,
Map componentClassNames)
| Method Detail |
|---|
public void addComponent(String componentName,
Object component)
addComponent in interface RepositoryConfigurationpublic Object getComponent(String componentName)
RepositoryConfiguration
getComponent in interface RepositoryConfigurationpublic String getStringComponent(String componentName)
RepositoryConfiguration
getStringComponent in interface RepositoryConfigurationpublic boolean hasComponent(String componentName)
RepositoryConfiguration
hasComponent in interface RepositoryConfigurationpublic String getComponentClassName(String componentName)
getComponentClassName in interface RepositoryConfiguration
public RepositoryAccessor configure()
throws ConfigurationException
configure in interface RepositoryConfigurationConfigurationExceptionpublic RepositoryIdentifier getIdentifier()
getIdentifier in interface RepositoryConfigurationpublic boolean hasClassForComponent(String componentName)
hasClassForComponent in interface RepositoryConfigurationpublic Set getComponentNames()
getComponentNames in interface RepositoryConfigurationpublic void setCacheConfiguration(CacheConfiguration cacheConfiguration)
RepositoryConfiguration
setCacheConfiguration in interface RepositoryConfigurationpublic boolean isCachingEnabled()
RepositoryConfiguration
isCachingEnabled in interface RepositoryConfigurationRepositoryConfiguration.getCacheConfiguration(),
RepositoryConfiguration.setCacheConfiguration(CacheConfiguration)public CacheConfiguration getCacheConfiguration()
RepositoryConfigurationRepositoryConfiguration.isCachingEnabled() rather than
checking explicitly for null.
getCacheConfiguration in interface RepositoryConfigurationRepositoryConfiguration.isCachingEnabled()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||