com.metamatrix.dqp.embedded.configuration
Class ExtensionModuleReader

java.lang.Object
  extended by com.metamatrix.dqp.embedded.configuration.ExtensionModuleReader

public class ExtensionModuleReader
extends java.lang.Object

Since:
4.3

Constructor Summary
ExtensionModuleReader()
           
 
Method Summary
static ExtensionModule loadExtensionModule(java.lang.String extModuleName, java.net.URL extModuleURL)
          Load the extension module from the file system
static java.util.List loadExtensionModules(java.net.URL extensionPathURL)
          Load all the Extension modules from the given directory
static java.net.URL[] resolveExtensionClasspath(java.lang.String extClassPath, java.net.URL context)
          Convert the extension path into URLS
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtensionModuleReader

public ExtensionModuleReader()
Method Detail

loadExtensionModule

public static ExtensionModule loadExtensionModule(java.lang.String extModuleName,
                                                  java.net.URL extModuleURL)
                                           throws MetaMatrixComponentException
Load the extension module from the file system

Returns:
Throws:
MetaMatrixComponentException
Since:
4.3

loadExtensionModules

public static java.util.List loadExtensionModules(java.net.URL extensionPathURL)
                                           throws MetaMatrixComponentException
Load all the Extension modules from the given directory

Parameters:
extModuleDirectory -
Returns:
list of Extension Modules ExtensionModule
Throws:
MetaMatrixComponentException
Since:
4.3

resolveExtensionClasspath

public static java.net.URL[] resolveExtensionClasspath(java.lang.String extClassPath,
                                                       java.net.URL context)
                                                throws java.io.IOException
Convert the extension path into URLS

Parameters:
extClassPath - - ClassPath String for the extension classpath Example:extensionjar:jdbcconn.jar;extensionjar:MJjdbc.jar;file://E/mydir/my.jar
context - - dqp.extensions directory path used for finding the context URL
Returns:
URL[] array of URLs
Throws:
java.net.MalformedURLException
java.io.IOException
Since:
4.3


Copyright © 2009. All Rights Reserved.