polishing
This commit is contained in:
parent
3cf22a0255
commit
ee04046ed7
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2008 the original author or authors.
|
* Copyright 2002-2010 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -153,8 +153,8 @@ public class ConfigurableMimeFileTypeMap extends FileTypeMap implements Initiali
|
||||||
fileTypeMap = new MimetypesFileTypeMap();
|
fileTypeMap = new MimetypesFileTypeMap();
|
||||||
}
|
}
|
||||||
if (mappings != null) {
|
if (mappings != null) {
|
||||||
for (int i = 0; i < mappings.length; i++) {
|
for (String mapping : mappings) {
|
||||||
fileTypeMap.addMimeTypes(mappings[i]);
|
fileTypeMap.addMimeTypes(mapping);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return fileTypeMap;
|
return fileTypeMap;
|
||||||
|
|
|
@ -23,36 +23,36 @@
|
||||||
<xsd:attribute name="location" type="xsd:string">
|
<xsd:attribute name="location" type="xsd:string">
|
||||||
<xsd:annotation>
|
<xsd:annotation>
|
||||||
<xsd:documentation><![CDATA[
|
<xsd:documentation><![CDATA[
|
||||||
The location of the properties file to resolve placeholders against, as a Spring
|
The location of the properties file to resolve placeholders against, as a Spring
|
||||||
resource location: a URL, a "classpath:" pseudo URL, or a relative file path.
|
resource location: a URL, a "classpath:" pseudo URL, or a relative file path.
|
||||||
Multiple locations may be specified, separated by commas. If neither location nor properties-ref is
|
Multiple locations may be specified, separated by commas. If neither location nor properties-ref is
|
||||||
specified, placeholders will be resolved against system properties.
|
specified, placeholders will be resolved against system properties.
|
||||||
]]></xsd:documentation>
|
]]></xsd:documentation>
|
||||||
</xsd:annotation>
|
</xsd:annotation>
|
||||||
</xsd:attribute>
|
</xsd:attribute>
|
||||||
<xsd:attribute name="properties-ref" type="xsd:string">
|
<xsd:attribute name="properties-ref" type="xsd:string">
|
||||||
<xsd:annotation>
|
<xsd:annotation>
|
||||||
<xsd:documentation source="java:java.util.Properties"><![CDATA[
|
<xsd:documentation source="java:java.util.Properties"><![CDATA[
|
||||||
The bean name of a Java Properties object that will be used for property substitution.
|
The bean name of a Java Properties object that will be used for property substitution.
|
||||||
If neither location nor properties-ref is specified, placeholders will be resolved against system properties.
|
If neither location nor properties-ref is specified, placeholders will be resolved against system properties.
|
||||||
]]></xsd:documentation>
|
]]></xsd:documentation>
|
||||||
</xsd:annotation>
|
</xsd:annotation>
|
||||||
</xsd:attribute>
|
</xsd:attribute>
|
||||||
<xsd:attribute name="file-encoding" type="xsd:string">
|
<xsd:attribute name="file-encoding" type="xsd:string">
|
||||||
<xsd:annotation>
|
<xsd:annotation>
|
||||||
<xsd:documentation><![CDATA[
|
<xsd:documentation><![CDATA[
|
||||||
Specifies the encoding to use for parsing properties files. Default is none,
|
Specifies the encoding to use for parsing properties files. Default is none,
|
||||||
using the java.util.Properties default encoding. Only applies to classic
|
using the java.util.Properties default encoding. Only applies to classic
|
||||||
properties files, not to XML files.
|
properties files, not to XML files.
|
||||||
]]></xsd:documentation>
|
]]></xsd:documentation>
|
||||||
</xsd:annotation>
|
</xsd:annotation>
|
||||||
</xsd:attribute>
|
</xsd:attribute>
|
||||||
<xsd:attribute name="order" type="xsd:integer">
|
<xsd:attribute name="order" type="xsd:integer">
|
||||||
<xsd:annotation>
|
<xsd:annotation>
|
||||||
<xsd:documentation><![CDATA[
|
<xsd:documentation><![CDATA[
|
||||||
Specifies the order for this placeholder configurer. If more than one is present in a context
|
Specifies the order for this placeholder configurer. If more than one is present in a context
|
||||||
the order can be important since the first one to be match a placeholder will win. Often used
|
the order can be important since the first one to be match a placeholder will win. Often used
|
||||||
in conjunction with
|
in conjunction with
|
||||||
]]></xsd:documentation>
|
]]></xsd:documentation>
|
||||||
</xsd:annotation>
|
</xsd:annotation>
|
||||||
</xsd:attribute>
|
</xsd:attribute>
|
||||||
|
@ -60,9 +60,9 @@ in conjunction with
|
||||||
default="false">
|
default="false">
|
||||||
<xsd:annotation>
|
<xsd:annotation>
|
||||||
<xsd:documentation><![CDATA[
|
<xsd:documentation><![CDATA[
|
||||||
Specifies if failure to find the property resource location should be ignored. Default
|
Specifies if failure to find the property resource location should be ignored. Default
|
||||||
is "false", meaning that if there is no file in the location specified an exception will
|
is "false", meaning that if there is no file in the location specified an exception will
|
||||||
be raised at runtime.
|
be raised at runtime.
|
||||||
]]></xsd:documentation>
|
]]></xsd:documentation>
|
||||||
</xsd:annotation>
|
</xsd:annotation>
|
||||||
</xsd:attribute>
|
</xsd:attribute>
|
||||||
|
@ -70,10 +70,10 @@ be raised at runtime.
|
||||||
default="false">
|
default="false">
|
||||||
<xsd:annotation>
|
<xsd:annotation>
|
||||||
<xsd:documentation><![CDATA[
|
<xsd:documentation><![CDATA[
|
||||||
Specifies if failure to find the property value to replace a key should be ignored. Default
|
Specifies if failure to find the property value to replace a key should be ignored. Default
|
||||||
is "false", meaning that this placeholder configurer will raise an exception if it cannot resolve
|
is "false", meaning that this placeholder configurer will raise an exception if it cannot resolve
|
||||||
a key. Set to "true" to allow the configurer to pass on the key to any others in
|
a key. Set to "true" to allow the configurer to pass on the key to any others in
|
||||||
the context that have not yet visited the key in question.
|
the context that have not yet visited the key in question.
|
||||||
]]></xsd:documentation>
|
]]></xsd:documentation>
|
||||||
</xsd:annotation>
|
</xsd:annotation>
|
||||||
</xsd:attribute>
|
</xsd:attribute>
|
||||||
|
@ -81,8 +81,8 @@ the context that have not yet visited the key in question.
|
||||||
default="false">
|
default="false">
|
||||||
<xsd:annotation>
|
<xsd:annotation>
|
||||||
<xsd:documentation><![CDATA[
|
<xsd:documentation><![CDATA[
|
||||||
Specifies whether local properties override properties from files. Default
|
Specifies whether local properties override properties from files. Default
|
||||||
is "false": Properties from files override local defaults.
|
is "false": Properties from files override local defaults.
|
||||||
]]></xsd:documentation>
|
]]></xsd:documentation>
|
||||||
</xsd:annotation>
|
</xsd:annotation>
|
||||||
</xsd:attribute>
|
</xsd:attribute>
|
||||||
|
|
Loading…
Reference in New Issue