net.dpml.lang
Interface Value

All Known Implementing Classes:
Construct

public interface Value

A object resolvable from primitive and symbolic arguments.

Version:
1.0.1
Author:
Digital Product Meta Library

Method Summary
 Object resolve()
          Resolve an instance from the value using the context classloader.
 Object resolve(boolean isolate)
          Resolve an instance from the value using a supplied isolation policy.
 Object resolve(Map map)
          Resolve an instance from the value using a supplied context map.
 Object resolve(Map map, boolean isolate)
          Resolve an instance from the value using a supplied context map.
 Object resolve(String classname, Map map, boolean isolate)
          Resolve an instance from the value using a supplied context map.
 

Method Detail

resolve

public Object resolve()
               throws Exception
Resolve an instance from the value using the context classloader.

Returns:
the resolved instance
Throws:
Exception - if error occurs during instance resolution

resolve

public Object resolve(Map map)
               throws Exception
Resolve an instance from the value using a supplied context map. If any target expressions in immediate or nested values contain a symbolic expression the value will be resolved using the supplied map.

Parameters:
map - the context map
Returns:
the resolved instance
Throws:
Exception - if error occurs during instance resolution

resolve

public Object resolve(boolean isolate)
               throws Exception
Resolve an instance from the value using a supplied isolation policy.

Parameters:
isolate - the isolation policy
Returns:
the resolved instance
Throws:
Exception - if error occurs during instance resolution

resolve

public Object resolve(Map map,
                      boolean isolate)
               throws Exception
Resolve an instance from the value using a supplied context map. If any target expressions in immediate or nested values contain a symbolic expression the value will be resolved using the supplied map.

Parameters:
map - the context map
isolate - the isolation policy
Returns:
the resolved instance
Throws:
Exception - if error occurs during instance resolution

resolve

public Object resolve(String classname,
                      Map map,
                      boolean isolate)
               throws Exception
Resolve an instance from the value using a supplied context map. If any target expressions in immediate or nested values contain a symbolic expression the value will be resolved using the supplied map.

Parameters:
classname - the default classname
map - the context map
isolate - the isolation policy
Returns:
the resolved instance
Throws:
Exception - if error occurs during instance resolution