List of usage examples for java.util Collections unmodifiableMap
public static <K, V> Map<K, V> unmodifiableMap(Map<? extends K, ? extends V> m)
From source file:me.st28.flexseries.flexcore.command.FlexCommandSettings.java
/** * @return the aliases for labels that should execute subcommands directly. *///from w w w .j a v a 2s . c om public final Map<String, String> getSubcommandAliases() { return Collections.unmodifiableMap(subcommandAliases); }
From source file:com.adobe.acs.commons.mcp.form.FieldComponent.java
public final Map<ClientLibraryType, Set<String>> getClientLibraryCategories() { return Collections.unmodifiableMap(clientLibraries); }
From source file:com.parse.ParseConfig.java
ParseConfig() {
params = Collections.unmodifiableMap(new HashMap<String, Object>());
}
From source file:com.metamesh.opencms.rfs.RfsFileLoader.java
/** * Will always return <code>null</code> since this loader does not * need to be configured.<p>/* w w w.j a va 2s .c om*/ * * @see org.opencms.configuration.I_CmsConfigurationParameterHandler#getConfiguration() */ public Map getConfiguration() { // return the configuration in an immutable form return Collections.unmodifiableMap(m_configuration); }
From source file:com.moz.fiji.mapreduce.kvstore.KeyValueStoreReaderFactory.java
/** * Creates a KeyValueStoreReaderFactory backed by store bindings specified in a Configuration. * * @param conf the Configuration from which a set of KeyValueStore bindings should * be deserialized and initialized.//from w w w.ja v a 2s. c o m * @throws IOException if there is an error deserializing or initializing a * KeyValueStore instance. */ private KeyValueStoreReaderFactory(Configuration conf) throws IOException { Map<String, KeyValueStore<?, ?>> keyValueStores = new HashMap<String, KeyValueStore<?, ?>>(); int numKvStores = conf.getInt(KeyValueStoreConfigSerializer.CONF_KEY_VALUE_STORE_COUNT, KeyValueStoreConfigSerializer.DEFAULT_KEY_VALUE_STORE_COUNT); for (int i = 0; i < numKvStores; i++) { KeyValueStoreConfiguration kvStoreConf = KeyValueStoreConfiguration.createInConfiguration(conf, i); Class<? extends KeyValueStore> kvStoreClass = kvStoreConf .<KeyValueStore>getClass(KeyValueStoreConfigSerializer.CONF_CLASS, null, KeyValueStore.class); String kvStoreName = kvStoreConf.get(KeyValueStoreConfigSerializer.CONF_NAME, ""); if (null != kvStoreClass) { KeyValueStore<?, ?> kvStore = ReflectionUtils.newInstance(kvStoreClass, conf); if (null != kvStore) { kvStore.initFromConf(kvStoreConf); if (kvStoreName.isEmpty()) { LOG.warn("Deserialized KeyValueStore not bound to a name; ignoring."); continue; } keyValueStores.put(kvStoreName, kvStore); } } } mKeyValueStores = Collections.unmodifiableMap(keyValueStores); mKVStoreReaderCache = Maps.newConcurrentMap(); }
From source file:com.anrisoftware.sscontrol.scripts.localuser.LocalUserInfo.java
public Map<String, Integer> getGroups() { return Collections.unmodifiableMap(groups); }
From source file:de.eonas.opencms.parserimpl.RelativePortalURLImpl.java
public Map<String, PortletMode> getPortletModes() { return Collections.unmodifiableMap(portletModes); }
From source file:com.aplos.core.listeners.MultipartRequest.java
@Override public Map getParameterMap() { if (parameterMap == null) { Map<String, String[]> map = new LinkedHashMap<String, String[]>(); for (String formParam : formParams.keySet()) { map.put(formParam, formParams.get(formParam).toArray(new String[0])); }/* w ww. ja v a 2 s . c o m*/ map.putAll(super.getParameterMap()); parameterMap = Collections.unmodifiableMap(map); } return parameterMap; }
From source file:it.unipmn.di.dcs.sharegrid.web.servlet.MultipartRequestWrapper.java
@Override public Map<String, String[]> getParameterMap() { return Collections.unmodifiableMap(this.params); }
From source file:org.apache.synapse.endpoints.ServiceDynamicLoadbalanceEndpoint.java
public Map<String, String> getHostDomainMap() { return Collections.unmodifiableMap(hostDomainMap); }