org.eclipse.incquery.patternlanguage.emf.util

## Class SimpleClassLoaderProvider

- java.lang.Object
- - org.eclipse.incquery.patternlanguage.emf.util.SimpleClassLoaderProvider

- All Implemented Interfaces:
    IClassLoaderProvider

      public class SimpleClassLoaderProvider
      extends java.lang.Object
      implements IClassLoaderProvider

  Generic classloader implementation - returns the base classloader. If using an environment with multiple classloaders, this provider should not be used.
  Author:
    Zoltan Ujhelyi

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SimpleClassLoaderProvider()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.ClassLoader` | `getClassLoader(Pattern pattern)` Finds the class loader usable for interpreting expressions defined inside the pattern.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SimpleClassLoaderProvider

          public SimpleClassLoaderProvider()

  - ### Method Detail

    - #### getClassLoader

          public java.lang.ClassLoader getClassLoader(Pattern pattern)
                                               throws IncQueryException

      Description copied from interface: `IClassLoaderProvider`
      Finds the class loader usable for interpreting expressions defined inside the pattern.
      Specified by:
        `getClassLoader` in interface `IClassLoaderProvider`
      Returns:
        the found classloader, never null
      Throws:
        `IncQueryException` - if no classloader is found, or classloader cannot be initialized, an exception is thrown