com.metamatrix.query.function
Interface FunctionMetadataSource

All Known Implementing Classes:
SystemSource, UDFSource

public interface FunctionMetadataSource

A FunctionMetadataSource represents a source of function metadata for the function library. A FunctionMetadataSource needs to know how to return a collection of all the function signatures it knows about.


Method Summary
 java.util.Collection getFunctionMethods()
          This method requests that the source return all com.metamatrix.query.function.FunctionMethods 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 source)
           
 

Method Detail

getFunctionMethods

java.util.Collection getFunctionMethods()
This method requests that the source return all com.metamatrix.query.function.FunctionMethods 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.

Returns:
Collection of FunctionMethod objects

getInvocationClass

java.lang.Class getInvocationClass(java.lang.String className)
                                   throws java.lang.ClassNotFoundException
This method determines where the invocation classes specified in the function metadata are actually retrieved from.

Parameters:
className - Name of class
Returns:
Class reference
Throws:
java.lang.ClassNotFoundException - If class could not be found

loadFunctions

void loadFunctions(java.io.InputStream source)
                   throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2009. All Rights Reserved.