org.pdfsam.guiclient.business.thumbnails
Class ThumbnailCreatorsRegisty

java.lang.Object
  extended by org.pdfsam.guiclient.business.thumbnails.ThumbnailCreatorsRegisty

public class ThumbnailCreatorsRegisty
extends java.lang.Object

Registy of the installed ThumbnailCreators

Author:
Andrea Vacondio

Constructor Summary
ThumbnailCreatorsRegisty()
           
 
Method Summary
static ThumbnailsCreator getCreator(java.lang.String identifier)
           
static java.util.List<StringItem> getInstalledCreators()
           
static void reload(java.lang.ClassLoader cl)
          Creates the services from the given class loader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThumbnailCreatorsRegisty

public ThumbnailCreatorsRegisty()
Method Detail

getCreator

public static ThumbnailsCreator getCreator(java.lang.String identifier)
Parameters:
identifier -
Returns:
The requested ThumbnailsCreator or the first available of the requested one is not available. Returns null if no ThumbnailsCreator is available.

getInstalledCreators

public static java.util.List<StringItem> getInstalledCreators()
Returns:
a list of the available CREATORS

reload

public static void reload(java.lang.ClassLoader cl)
Creates the services from the given class loader. Useful when new jars/classes are loaded at runtime