Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4453700

spec: the purpose of the defaultController is not clear

XMLWordPrintable

    • beta3
    • generic
    • generic



      Name: mlR10151 Date: 05/02/2001



      javax.imageio.metadata.IIOMetadata has the controller and the defaultController fields.
      According to the spec.,

      protected IIOMetadataController defaultController

            The default IIOMetadataController that will be used to provide settings for this IIOMetadata
            object when the activateController method is called. This default should be set by subclasses that
            choose to provide their own default controller, usually a GUI, for setting parameters.

      protected IIOMetadataController controller

            The IIOMetadataController that will be used to provide settings for this IIOMetadata object when
            the activateController method is called. This value overrides any default controller, even when
            null.

      So, which controller will be used by the activateController method?
      There is only one place in the IIOMetadata.java where the defaultController is used.
      It's the getDefaultController method.

      So, the purpose of the default controller is not clear.
      Probably it must be used when the controller is null.




      ======================================================================

            dricesunw Daniel Rice (Inactive)
            mlsunw Ml Ml (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: