org.objectweb.fractal.task.core.composition
Class FunctionLoader
java.lang.Object
org.objectweb.fractal.task.core.composition.AbstractTaskCompositionLoader
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_FUNCTION_PACKAGE_NAME
public static final java.lang.String DEFAULT_FUNCTION_PACKAGE_NAME
- See Also:
- Constant Field Values
FunctionLoader
public FunctionLoader()
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.