org.teiid.query.function
Class UDFSource

java.lang.Object
  extended by org.teiid.query.function.UDFSource
All Implemented Interfaces:
FunctionMetadataSource

public class UDFSource
extends java.lang.Object
implements FunctionMetadataSource


Constructor Summary
UDFSource(java.util.Collection<FunctionMethod> methods)
           
 
Method Summary
 java.util.Collection<FunctionMethod> getFunctionMethods()
          This method requests that the source return all 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UDFSource

public UDFSource(java.util.Collection<FunctionMethod> methods)
Method Detail

getFunctionMethods

public java.util.Collection<FunctionMethod> getFunctionMethods()
Description copied from interface: FunctionMetadataSource
This method requests that the source return all 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.

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


Copyright © 2011. All Rights Reserved.