org.springframework.extensions.config.ConfigService Java Examples
The following examples show how to use
org.springframework.extensions.config.ConfigService.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MimetypeMapTest.java From alfresco-data-model with GNU Lesser General Public License v3.0 | 6 votes |
private void setConfigService(final String mimetypes) { ConfigSource configSource = new ConfigSource() { @Override public List<ConfigDeployment> getConfigDeployments() { String xml = "<alfresco-config area=\"mimetype-map\">" + " <config evaluator=\"string-compare\" condition=\"Mimetype Map\">" + " <mimetypes>" + mimetypes + " </mimetypes>" + " </config>" + "</alfresco-config>"; List<ConfigDeployment> configs = new ArrayList<ConfigDeployment>(); configs.add(new ConfigDeployment("name", new ByteArrayInputStream(xml.getBytes()))); return configs; } }; ConfigService configService = new XMLConfigService(configSource); ((XMLConfigService) configService).initConfig(); ((MimetypeMap)mimetypeService).setConfigService(configService); }
Example #2
Source File: MimetypeMap.java From alfresco-data-model with GNU Lesser General Public License v3.0 | 5 votes |
@Deprecated public MimetypeMap(ConfigService configService) { logger.warn("MimetypeMap(ConfigService configService) has been deprecated. " + "Use the default constructor and property 'configService'"); this.configService = configService; }
Example #3
Source File: ContentFilterLanguagesMap.java From alfresco-repository with GNU Lesser General Public License v3.0 | 4 votes |
/** * @param configService the config service to use to read languages */ public void setConfigService(ConfigService configService) { this.configService = configService; }
Example #4
Source File: MimetypeMap.java From alfresco-data-model with GNU Lesser General Public License v3.0 | 4 votes |
public ConfigService getConfigService() { return configService; }
Example #5
Source File: MimetypeMap.java From alfresco-data-model with GNU Lesser General Public License v3.0 | 4 votes |
/** * @param configService the config service to use to read mimetypes from */ public void setConfigService(ConfigService configService) { this.configService = configService; }
Example #6
Source File: SearchProxy.java From alfresco-remote-api with GNU Lesser General Public License v3.0 | 4 votes |
/** * @param configService ConfigService */ public void setConfigService(ConfigService configService) { this.configService = configService; }
Example #7
Source File: SearchEngines.java From alfresco-remote-api with GNU Lesser General Public License v3.0 | 4 votes |
/** * @param configService ConfigService */ public void setConfigService(ConfigService configService) { this.configService = configService; }