com.metamatrix.query.function
Class FunctionLibraryManager

java.lang.Object
  extended by com.metamatrix.query.function.FunctionLibraryManager

public class FunctionLibraryManager
extends java.lang.Object

Factory to obtain the local FunctionLibrary and register sources of function metadata.


Method Summary
static ActivityReport deregisterSource(FunctionMetadataSource source)
          Register a new source of function metadata.
static FunctionLibrary getFunctionLibrary()
          Factory method to obtain a reference to a function.
static ActivityReport registerSource(FunctionMetadataSource source)
          Register a new source of function metadata.
static ActivityReport reloadSources()
          Reload all sources.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFunctionLibrary

public static FunctionLibrary getFunctionLibrary()
Factory method to obtain a reference to a function.

Returns:
Function library to find and invoke functions

registerSource

public static ActivityReport registerSource(FunctionMetadataSource source)
Register a new source of function metadata. The method reloadSources() will be called as a result.

Parameters:
source - A new source of function metadata
Returns:
Report of any invalid FunctionMethod objects

deregisterSource

public static ActivityReport deregisterSource(FunctionMetadataSource source)
Register a new source of function metadata. The method reloadSources() will be called as a result.

Parameters:
source - A new source of function metadata
Returns:
Report of any invalid FunctionMethod objects

reloadSources

public static ActivityReport reloadSources()
Reload all sources. All valid functions in the registered function sources are reloaded. Any invalid functions are noted in the report.

Returns:
Report of any invalid FunctionMethod objects.


Copyright © 2009. All Rights Reserved.