org.eclipse.emf.mwe.core.resources
Class ResourceLoaderFactory

java.lang.Object
  extended by org.eclipse.emf.mwe.core.resources.ResourceLoaderFactory

public class ResourceLoaderFactory
extends java.lang.Object

Factory for ResourceLoaders. By default this factory creates instances of ResourceLoaderDefaultImpl.

The factory evaluates the org.eclipse.emf.mwe.core.resources.ResourceLoader system property to get the ResourceLoader implementation class name. Set this property to specify an alternative implementation.


Field Summary
static java.lang.String PARAM_RESOURCELOADER_CLASS
           
 
Constructor Summary
ResourceLoaderFactory()
           
 
Method Summary
static ResourceLoader createResourceLoader()
          Creates an instance of ResourceLoader.
static ResourceLoader getCurrentThreadResourceLoader()
           
static void setCurrentThreadResourceLoader(ResourceLoader rl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAM_RESOURCELOADER_CLASS

public static final java.lang.String PARAM_RESOURCELOADER_CLASS
See Also:
Constant Field Values
Constructor Detail

ResourceLoaderFactory

public ResourceLoaderFactory()
Method Detail

setCurrentThreadResourceLoader

public static void setCurrentThreadResourceLoader(ResourceLoader rl)

getCurrentThreadResourceLoader

public static ResourceLoader getCurrentThreadResourceLoader()

createResourceLoader

public static ResourceLoader createResourceLoader()
                                           throws java.lang.RuntimeException
Creates an instance of ResourceLoader.

Returns:
The newly created object
Throws:
java.lang.RuntimeException - In any case that an instance could not be created.