|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SystemOverride
Marker interface for Service Providers that may override a JDK
service, or a service provided by a standard extension. For example the
RawImageReader.Spi class provides a
"raw" image reader which can override the one provided by the
Image I/O extension for JAI library.
The default behavior (to override the standard provider or not) is provider-dependent. However the actual behavior can be forced explicitly. For example Geotk can be prevented from overriding any standard JDK or extension services in the two ways show below.
From the command line:
or programmatically:java -Dgeotk.system.override=false mypackage.MyMainClass
package mypackage;
public class MyMainClass {
public static void main(String[] args) {
System.setProperty(SystemOverride.KEY_ALLOW_OVERRIDE, "false");
// Launch the application now.
}
}
For a complete list of Geotk services that can override standard services, see the
"All Known Implementing Classes" section above.
| utility/geotk-utility (download) | View source code for this class |
| Field Summary | |
|---|---|
static String |
KEY_ALLOW_OVERRIDE
The system properties key which control whatever Geotk is allowed to override standard providers. |
| Field Detail |
|---|
static final String KEY_ALLOW_OVERRIDE
"geotk.system.override". The value associated to this key can be "true" or
"false", case-insensitive.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||