<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi Curtis,<br>
      <br>
      it does work as minimal setting. <br>
      But we discovered that we need more services to get the
      functionality that we need within KNIP (opening all the images
      that are supported by bioformats). So far we added the following
      services to open some test pictures: "FormatService.class,
      CodecService.class, TiffService.class, JAIIIOService.class"<br>
      <br>
      What other services will we need? Or more specific is there a
      better way than incrementally adding services to get a
      "Bioformats" ImgOpener running without discovering unrelated
      services like HotdrawService...<br>
      <br>
      Best Michael<br>
      <br>
    </div>
    <blockquote
cite="mid:CADN69y=LYYOTncvGVyuOpO0cpB0WVNyx1=kPC+L1J=dTqwpoSg@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi Michael,
        <div><br>
        </div>
        <div>
          <div>> What is the minimal set of Services that we need
            just for the opener?</div>
        </div>
        <div><br>
        </div>
        <div>The noargs ImgOpener constructor is supposed to give you
          exactly that:</div>
        <div><br>
        </div>
        <div><a moz-do-not-send="true"
href="https://github.com/scifio/scifio/blob/8037fd38419030dff000eda84fca9b35909be3a4/scifio/src/main/java/io/scif/img/AbstractImgIOComponent.java#L68">https://github.com/scifio/scifio/blob/8037fd38419030dff000eda84fca9b35909be3a4/scifio/src/main/java/io/scif/img/AbstractImgIOComponent.java#L68</a><br>
        </div>
        <div><br>
        </div>
        <div>Please let us know if it doesn't work for you!</div>
        <div><br>
        </div>
        <div>Regards,</div>
        <div>Curtis</div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Mon, Aug 12, 2013 at 10:39 AM,
          Michael Zinsmaier <span dir="ltr"><<a
              moz-do-not-send="true"
              href="mailto:michael.zinsmaier@gmx.de" target="_blank">michael.zinsmaier@gmx.de</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
            <br>
            we try to create a suitable context for the ImgOpener but on
            our classpath are several jar files that contain services
            which we do not intend to use and which cause problems if
            discovered (e.g. HotdrawService is discovered but we do not
            include all required libs...). What is the minimal set of
            Services that we need just for the opener?<br>
            <br>
            or more code based:<br>
            <br>
            given the following methods<br>
            <br>
                public void foo() {<br>
                    Context c = new Context(getIOContextServices());<br>
                    m_scifio = new SCIFIO(c);<br>
                    FORMATS = m_scifio.format().getAllFormats();<br>
                }<br>
            <br>
                private List<Class<? extends Service>>
            getIOContextServices() {<br>
                    final List services = new ArrayList();<br>
                   services.add(FormatService.class);<br>
                   return services;<br>
                }<br>
            <br>
            what would be the minimal list of required services in order
            to get a suitable Context for the ImgOpener?<br>
            <br>
            Regards Michael<br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>