Class Registry

Object
Registry

public final class Registry extends Object
A set of static methods for managing JAI's operation registry.
Since:
2.2
Author:
Martin Desruisseaux (IRD), Andrea Aime - GeoSolutions
  • Field Details

    • JAI_TOOLS_PRODUCT

      public static final String JAI_TOOLS_PRODUCT
      The JAITools product name (used to register operations in JAI)
      See Also:
    • GEOTOOLS_PRODUCT

      public static final String GEOTOOLS_PRODUCT
      The GeoTools product name (used to register operations in JAI)
      See Also:
  • Method Details

    • setNativeAccelerationAllowed

      @Deprecated public static void setNativeAccelerationAllowed(String operation, boolean allowed, JAI jai)
      Deprecated.
      Native acceleration is no longer supported.
    • setNativeAccelerationAllowed

      @Deprecated public static void setNativeAccelerationAllowed(String operation, boolean allowed)
      Deprecated.
      Native acceleration is no longer supported.
    • registerRIF

      public static boolean registerRIF(JAI jai, OperationDescriptor descriptor, String name, ContextualRenderedImageFactory crif)
      Register the "SampleTranscode" image operation to the operation registry of the specified JAI instance. This method is invoked by the static initializer of GridSampleDimension.
      Parameters:
      jai - is he JAI instance in which we ant to register this operation.
      descriptor - is the OperationDescriptor for the JAI operation to register.
      name - is the name of the operation to register.
      crif - is the rendered image facotry for this operation.
      Returns:
      true if everything goes well, false otherwise.
    • registerRIF

      public static boolean registerRIF(JAI jai, OperationDescriptor descriptor, RenderedImageFactory rif, String productName)
      Forcefully registers the specified rendered operation in the JAI registry
      Returns:
      true if the registration succeded, false if the registration was not required as the operation was already available in the registry