|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPlaceholderResolver
Interface defines methods that a placeholder resolver must implement. The
implementation must be thread safe.
A placeholder is some kind of procedure in other programming languages. A
placeholder has got a symbol name and between [0, M] parameters. Placeholders
could be used in placeholder scripts to assemble some free styled dynamic
string output. A placeholder resolver is a package of [0, N] placeholders,
which encapsulates the logic for the placeholders that the package offers.
A placeholder could be for example "add" to which [2, M] number parameters
could be passed. A resolver which offers the "add" placeholder would than
encapsulate the logic how to add [2, M] numbers and return the computed
output back to the placeholder script interpreter, which invoked the
resolver.
Method Summary | |
---|---|
Set<String> |
getResolveablePlaceholders()
Returns a set of all placeholder procedures names that can be resolved by the placeholder. |
Object |
resolve(String placeholderName,
Object[] placeholderArguments,
IEnvironment environment)
Resolves the given placeholder under the passed interpreter environment. |
Method Detail |
---|
Set<String> getResolveablePlaceholders()
Object resolve(String placeholderName, Object[] placeholderArguments, IEnvironment environment) throws ResolveException
getResolveablePlaceholders()
).
placeholderName
- non null.placeholderArguments
- non null.environment
- non null
ResolveException
- if the placeholder could not get resolved, for example
because the parameters mismatch, or the resolution is only
successful for a specific target method execution phase.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |