Package org.teiid.query.function
Class UDFSource
- java.lang.Object
-
- org.teiid.query.function.UDFSource
-
- All Implemented Interfaces:
FunctionMetadataSource
- Direct Known Subclasses:
SystemSource
public class UDFSource extends Object implements FunctionMetadataSource
-
-
Field Summary
Fields Modifier and Type Field Description protected Collection<FunctionMethod>
functions
-
Constructor Summary
Constructors Constructor Description UDFSource(Collection<FunctionMethod> methods)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassLoader
getClassLoader()
Classloader used for functionsCollection<FunctionMethod>
getFunctionMethods()
This method requests that the source return allFunctionMethod
s the source knows about.Class<?>
getInvocationClass(String className)
This method determines where the invocation classes specified in the function metadata are actually retrieved from.void
setClassLoader(ClassLoader classLoader)
-
-
-
Field Detail
-
functions
protected Collection<FunctionMethod> functions
-
-
Constructor Detail
-
UDFSource
public UDFSource(Collection<FunctionMethod> methods)
-
-
Method Detail
-
getFunctionMethods
public Collection<FunctionMethod> getFunctionMethods()
Description copied from interface:FunctionMetadataSource
This method requests that the source return allFunctionMethod
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 interfaceFunctionMetadataSource
- Returns:
- Collection of FunctionMethod objects
-
getInvocationClass
public Class<?> getInvocationClass(String className) throws 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 interfaceFunctionMetadataSource
- Parameters:
className
- Name of class- Returns:
- Class reference
- Throws:
ClassNotFoundException
- If class could not be found
-
setClassLoader
public void setClassLoader(ClassLoader classLoader)
-
getClassLoader
public ClassLoader getClassLoader()
Description copied from interface:FunctionMetadataSource
Classloader used for functions- Specified by:
getClassLoader
in interfaceFunctionMetadataSource
- Returns:
-
-