repo.setProviderHint(ObrRepository.ROLE_HINT);
final Xpp3Dom ex = new Xpp3Dom(DefaultCRepository.EXTERNAL_CONFIGURATION_NODE_NAME);
repo.setExternalConfiguration(ex);
final ObrRepositoryConfiguration exConf = new ObrRepositoryConfiguration(ex);
repo.externalConfigurationImple = exConf;
repo.setWritePolicy(RepositoryWritePolicy.ALLOW_WRITE_ONCE.name());
repo.setNotFoundCacheTTL(1440);
final CRepositoryCoreConfiguration result =
new CRepositoryCoreConfiguration(
getTemplateProvider().getApplicationConfiguration(),
repo,
new CRepositoryExternalConfigurationHolderFactory<ObrRepositoryConfiguration>()
{
public ObrRepositoryConfiguration createExternalConfigurationHolder(final CRepository config) {
return new ObrRepositoryConfiguration(
(Xpp3Dom) config.getExternalConfiguration());
}
});
return result;