org.objectweb.fractal.task.core.composition
Class FunctionLoader

java.lang.Object
  extended by org.objectweb.fractal.task.core.composition.AbstractTaskCompositionLoader
      extended by org.objectweb.fractal.task.core.composition.FunctionLoader
All Implemented Interfaces:
org.objectweb.fractal.api.control.AttributeController, org.objectweb.fractal.api.control.BindingController, FunctionLoaderAttrbutes, TaskCompositionLoader

public class FunctionLoader
extends AbstractTaskCompositionLoader
implements FunctionLoaderAttrbutes


Field Summary
static java.lang.String DEFAULT_FUNCTION_PACKAGE_NAME
           
 
Fields inherited from class org.objectweb.fractal.task.core.composition.AbstractTaskCompositionLoader
clientLoader, LOADER_BINDING
 
Constructor Summary
FunctionLoader()
           
 
Method Summary
 java.lang.String getDefaultFunctionsPackageName()
          Gets the default package that in which the internal functions of the task composition interpreter can be found.
protected  java.lang.ClassLoader getLoader(java.util.Map<java.lang.Object,java.lang.Object> context)
           
 TaskDefinition load(java.lang.String name, java.util.Map<java.lang.Object,java.lang.Object> context)
          Loads the ADL definition whose name is given.
 void setDefaultFunctionsPackageName(java.lang.String arg)
          Sets the default package in which the internal functions of the task composition interpreter can be found.
 
Methods inherited from class org.objectweb.fractal.task.core.composition.AbstractTaskCompositionLoader
bindFc, listFc, lookupFc, unbindFc
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_FUNCTION_PACKAGE_NAME

public static final java.lang.String DEFAULT_FUNCTION_PACKAGE_NAME
See Also:
Constant Field Values
Constructor Detail

FunctionLoader

public FunctionLoader()
Method Detail

load

public TaskDefinition load(java.lang.String name,
                           java.util.Map<java.lang.Object,java.lang.Object> context)
                    throws TaskException
Description copied from interface: TaskCompositionLoader
Loads the ADL definition whose name is given.

Specified by:
load in interface TaskCompositionLoader
Parameters:
name - the name of a task composition definition.
context - optional additional information.
Returns:
the task definition whose name is given.
Throws:
TaskException - if the definition cannot be found, or if it contains errors.

getLoader

protected java.lang.ClassLoader getLoader(java.util.Map<java.lang.Object,java.lang.Object> context)

getDefaultFunctionsPackageName

public java.lang.String getDefaultFunctionsPackageName()
Description copied from interface: FunctionLoaderAttrbutes
Gets the default package that in which the internal functions of the task composition interpreter can be found.

Specified by:
getDefaultFunctionsPackageName in interface FunctionLoaderAttrbutes
Returns:
the default function package name

setDefaultFunctionsPackageName

public void setDefaultFunctionsPackageName(java.lang.String arg)
Description copied from interface: FunctionLoaderAttrbutes
Sets the default package in which the internal functions of the task composition interpreter can be found.

Specified by:
setDefaultFunctionsPackageName in interface FunctionLoaderAttrbutes
Parameters:
arg - the package name to be set.


Copyright © 2007-2009 ObjectWeb Consortium. All Rights Reserved.