org.gvsig.i18n
Class MessagesClassLoader

java.lang.Object
  extended byjava.lang.ClassLoader
      extended byjava.security.SecureClassLoader
          extended byjava.net.URLClassLoader
              extended byorg.gvsig.i18n.MessagesClassLoader

public class MessagesClassLoader
extends java.net.URLClassLoader

This class offers a class loader which is able to load files from the specified directories.

Author:
César Martínez Izquierdo (cesar.martinez@iver.es)

Constructor Summary
MessagesClassLoader(java.net.URL[] urls)
          Creates a new class loader, which is able to load files from the directories specified as parameter.
 
Method Summary
 java.net.URL getResource(java.lang.String res)
          Loads a resource using the specified file name.
 
Methods inherited from class java.net.URLClassLoader
findResource, findResources, getURLs, newInstance, newInstance
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, getParent, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessagesClassLoader

public MessagesClassLoader(java.net.URL[] urls)

Creates a new class loader, which is able to load files from the directories specified as parameter.

Parameters:
urls - The list of directories which will be used to load files.
Method Detail

getResource

public java.net.URL getResource(java.lang.String res)
Loads a resource using the specified file name.

Parameters:
res - The name of the resource to be loaded.