-
Notifications
You must be signed in to change notification settings - Fork 638
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added back support for ICO files by using TwelveMonkeys ImageIO GMP p…
…lugin - added TwelveMonkeys ImageIO library for ICO formats - added Apache Aries SPI Fly to mediate the publishing and consumption of ImageReaderSpi implementations - added the ImageioSpiRegistration to inject discovered SPI instances into the ImageIO registry (did not get the dynamic weaving framework extension to work inside the application) - when processing an ICO file, pick the best resolution given the maximum constraints
- Loading branch information
Showing
10 changed files
with
195 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
name.abuchen.portfolio/OSGI-INF/name.abuchen.portfolio.util.ImageioSpiRegistration.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" name="name.abuchen.portfolio.util.ImageioSpiRegistration"> | ||
<reference bind="addImageReaderSpi" cardinality="0..n" interface="javax.imageio.spi.ImageReaderSpi" name="javax.imageio.spi.ImageReaderSpi" policy="dynamic"/> | ||
<implementation class="name.abuchen.portfolio.util.ImageioSpiRegistration"/> | ||
</scr:component> |
19 changes: 19 additions & 0 deletions
19
name.abuchen.portfolio/src/name/abuchen/portfolio/util/ImageioSpiRegistration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package name.abuchen.portfolio.util; | ||
|
||
import javax.imageio.spi.IIORegistry; | ||
import javax.imageio.spi.ImageReaderSpi; | ||
|
||
import org.osgi.service.component.annotations.Component; | ||
import org.osgi.service.component.annotations.Reference; | ||
import org.osgi.service.component.annotations.ReferenceCardinality; | ||
|
||
@Component | ||
public class ImageioSpiRegistration | ||
{ | ||
@Reference(cardinality = ReferenceCardinality.MULTIPLE) | ||
public void addImageReaderSpi(ImageReaderSpi readerProvider) | ||
{ | ||
IIORegistry.getDefaultInstance().registerServiceProvider(readerProvider); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters