Class ResourceLoaderFactory

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

public class ResourceLoaderFactory extends 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 Details

  • Constructor Details

    • ResourceLoaderFactory

      public ResourceLoaderFactory()
  • Method Details

    • setCurrentThreadResourceLoader

      public static void setCurrentThreadResourceLoader(ResourceLoader rl)
    • getCurrentThreadResourceLoader

      public static ResourceLoader getCurrentThreadResourceLoader()
    • createResourceLoader

      public static ResourceLoader createResourceLoader() throws RuntimeException
      Creates an instance of ResourceLoader.
      Returns:
      The newly created object
      Throws:
      RuntimeException - In any case that an instance could not be created.