Revision 27598 branches/v2_0_0_prep/libraries/libGPE/src/org/gvsig/gpe/GPEDefaults.java
GPEDefaults.java | ||
---|---|---|
125 | 125 |
public class GPEDefaults { |
126 | 126 |
private static Properties properties = new Properties(); |
127 | 127 |
|
128 |
static{ |
|
129 |
Iterator providers = availableProperties(); |
|
130 |
while (providers.hasNext()) { |
|
131 |
IGPEProperties next = (IGPEProperties) providers.next(); |
|
132 |
Properties parserProperties = next.getProperties(); |
|
133 |
Iterator it = parserProperties.keySet().iterator(); |
|
134 |
while (it.hasNext()){ |
|
135 |
String key = (String)it.next(); |
|
136 |
properties.put(key, parserProperties.get(key)); |
|
137 |
} |
|
138 |
} |
|
139 |
} |
|
128 |
// static{ |
|
129 |
// Iterator providers = availableProperties(); |
|
130 |
// while (providers.hasNext()) { |
|
131 |
// IGPEProperties next = (IGPEProperties) providers.next(); |
|
132 |
// Properties parserProperties = next.getProperties(); |
|
133 |
// Iterator it = parserProperties.keySet().iterator(); |
|
134 |
// while (it.hasNext()){ |
|
135 |
// String key = (String)it.next(); |
|
136 |
// properties.put(key, parserProperties.get(key)); |
|
137 |
// } |
|
138 |
// } |
|
139 |
// } |
|
140 |
// |
|
141 |
// /** |
|
142 |
// * Returns an iterator over instances of the registered GPE properties. |
|
143 |
// * @return all the registered GPE properties |
|
144 |
// */ |
|
145 |
// private static Iterator availableProperties() { |
|
146 |
// Iterator providers = sun.misc.Service.providers(IGPEProperties.class); |
|
147 |
// return providers; |
|
148 |
// } |
|
140 | 149 |
|
141 | 150 |
/** |
142 |
* Returns an iterator over instances of the registered GPE properties. |
|
143 |
* @return all the registered GPE properties |
|
144 |
*/ |
|
145 |
private static Iterator availableProperties() { |
|
146 |
Iterator providers = sun.misc.Service.providers(IGPEProperties.class); |
|
147 |
return providers; |
|
148 |
} |
|
149 |
|
|
150 |
/** |
|
151 | 151 |
* Returns an iterator with the name of all the properties that |
152 | 152 |
* has been established. |
153 | 153 |
*/ |
Also available in: Unified diff