com.metamatrix.query.function
Class UDFSource
java.lang.Object
com.metamatrix.query.function.UDFSource
- All Implemented Interfaces:
- FunctionMetadataSource
public class UDFSource
- extends java.lang.Object
- implements FunctionMetadataSource
Constructor Summary |
UDFSource(java.io.InputStream udfStream,
java.lang.ClassLoader classloader)
|
UDFSource(java.io.InputStream udfStream,
java.net.URL[] classpath)
|
UDFSource(java.net.URL url)
|
UDFSource(java.net.URL url,
java.net.URL[] classpath)
|
Method Summary |
java.util.Collection |
getFunctionMethods()
This method requests that the source return all
com.metamatrix.query.function.FunctionMethod s
the source knows about. |
java.lang.Class |
getInvocationClass(java.lang.String className)
This method determines where the invocation classes specified in the
function metadata are actually retrieved from. |
void |
loadFunctions(java.io.InputStream in)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UDFSource
public UDFSource(java.net.URL url)
throws java.io.IOException
- Throws:
java.io.IOException
UDFSource
public UDFSource(java.net.URL url,
java.net.URL[] classpath)
throws java.io.IOException
- Throws:
java.io.IOException
UDFSource
public UDFSource(java.io.InputStream udfStream,
java.net.URL[] classpath)
throws java.io.IOException
- Throws:
java.io.IOException
UDFSource
public UDFSource(java.io.InputStream udfStream,
java.lang.ClassLoader classloader)
throws java.io.IOException
- Throws:
java.io.IOException
getFunctionMethods
public java.util.Collection getFunctionMethods()
- Description copied from interface:
FunctionMetadataSource
- This method requests that the source return all
com.metamatrix.query.function.FunctionMethod
s
the source knows about. This can occur in several situations -
on initial registration with the FunctionLibraryManager, on a
general reload, etc. This may be called multiple times and should
always return the newest information available.
- Specified by:
getFunctionMethods
in interface FunctionMetadataSource
- Returns:
- Collection of FunctionMethod objects
getInvocationClass
public java.lang.Class getInvocationClass(java.lang.String className)
throws java.lang.ClassNotFoundException
- Description copied from interface:
FunctionMetadataSource
- This method determines where the invocation classes specified in the
function metadata are actually retrieved from.
- Specified by:
getInvocationClass
in interface FunctionMetadataSource
- Parameters:
className
- Name of class
- Returns:
- Class reference
- Throws:
java.lang.ClassNotFoundException
- If class could not be found
loadFunctions
public void loadFunctions(java.io.InputStream in)
throws java.io.IOException
- Specified by:
loadFunctions
in interface FunctionMetadataSource
- Throws:
java.io.IOException
Copyright © 2009. All Rights Reserved.