Here you can find the source of deregisterProvider( final ServiceRegistry registry, final IIOServiceProvider provider, final Class
Parameter | Description |
---|---|
registry | the registry to unregister from. |
provider | the provider to unregister. |
category | the category to unregister from. |
public static <T> void deregisterProvider( final ServiceRegistry registry, final IIOServiceProvider provider, final Class<T> category)
//package com.java2s; import javax.imageio.spi.IIOServiceProvider; import javax.imageio.spi.ServiceRegistry; public class Main { /**/* w w w.j a v a 2s .c o m*/ * THIS METHOD WILL ME MOVED/RENAMED, DO NOT USE. * * @param registry the registry to unregister from. * @param provider the provider to unregister. * @param category the category to unregister from. */ public static <T> void deregisterProvider( final ServiceRegistry registry, final IIOServiceProvider provider, final Class<T> category) { // http://www.ibm.com/developerworks/java/library/j-jtp04298.html registry.deregisterServiceProvider(category.cast(provider), category); } }