org.objectweb.fractal.adl.arguments
Class ArgumentLoader

java.lang.Object
  extended by org.objectweb.fractal.adl.AbstractLoader
      extended by org.objectweb.fractal.adl.arguments.ArgumentLoader
All Implemented Interfaces:
Loader, org.objectweb.fractal.api.control.BindingController

public class ArgumentLoader
extends AbstractLoader

A delegating loader that replace argument references by their actual values.


Field Summary
static java.lang.String ARGUMENT_CONTEXT_PREFIX
          The context key prefix used to retrieve argument values.
static java.lang.String CONTEXT_PROPERTY_PREFIX
          The prefix to be used to access a context value.
static java.lang.String JAVA_PROPERTY_PREFIX
          The prefix to be used to access a Java system property.
static java.lang.String PREFIX_SEPARATOR
          The separator used to separate prefix and argument name in a substitution pattern.
 
Fields inherited from class org.objectweb.fractal.adl.AbstractLoader
clientLoader, LOADER_BINDING
 
Constructor Summary
ArgumentLoader()
           
 
Method Summary
 Definition load(java.lang.String name, java.util.Map<java.lang.Object,java.lang.Object> context)
          Loads the ADL definition whose name is given.
 
Methods inherited from class org.objectweb.fractal.adl.AbstractLoader
bindFc, listFc, lookupFc, unbindFc
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ARGUMENT_CONTEXT_PREFIX

public static final java.lang.String ARGUMENT_CONTEXT_PREFIX
The context key prefix used to retrieve argument values.

See Also:
Constant Field Values

PREFIX_SEPARATOR

public static final java.lang.String PREFIX_SEPARATOR
The separator used to separate prefix and argument name in a substitution pattern.

See Also:
Constant Field Values

JAVA_PROPERTY_PREFIX

public static final java.lang.String JAVA_PROPERTY_PREFIX
The prefix to be used to access a Java system property.

See Also:
Constant Field Values

CONTEXT_PROPERTY_PREFIX

public static final java.lang.String CONTEXT_PROPERTY_PREFIX
The prefix to be used to access a context value.

See Also:
Constant Field Values
Constructor Detail

ArgumentLoader

public ArgumentLoader()
Method Detail

load

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

Parameters:
name - the name of an ADL definition.
context - optional additional information.
Returns:
the ADL definition whose name is given.
Throws:
ADLException - if the definition cannot be found, or if it contains errors.


Copyright © 2001-2010 ObjectWeb Consortium. All Rights Reserved.