org.geotoolkit.lang
Interface SystemOverride

All Known Implementing Classes:
RawImageReader.Spi, RawTiffImageReader.Spi

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:

java -Dgeotk.system.override=false mypackage.MyMainClass
or programmatically:
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.

Since:
3.07
Version:
3.07
Author:
Martin Desruisseaux (Geomatys)
Module:
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

KEY_ALLOW_OVERRIDE

static final String KEY_ALLOW_OVERRIDE
The system properties key which control whatever Geotk is allowed to override standard providers. The name of this property key is "geotk.system.override". The value associated to this key can be "true" or "false", case-insensitive.

See Also:
Constant Field Values


Copyright © 2009-2013 Geotoolkit.org. All Rights Reserved.