|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WithEnvParams
Defines methods for establishign and accessing environment
parameters, represented as an instance of
Environ
.
Envionment parameters are (key,value) pairs that provide
several classes (for example routing algorithms) with extra
information so that the caller can influence their behaviour.
The names and types of the members of the environment
is decided by each implementation.
Method Summary | |
---|---|
Environ |
getEnviron()
Returns the environment associated to the instance. |
java.lang.Object[] |
getEnvParams()
Defines the list of "parameters" that the class instances expect to find in the environment. |
java.lang.String |
getName()
An identifier used as prefix for the names of environment parameters. |
Method Detail |
---|
Environ getEnviron()
java.lang.Object[] getEnvParams()
It is recommended that keys use compound names to avoid name clashes. A good alternative is the non-qualified class name, a dot and the parameter name.
A ficticious example:
class SomeClass<V, E> ... implements WithEnvParams { ... public Environ getEnvParams() { return new Object[] { "SomeClass.max_iteration", 100, "SomeClass.distribute_load", false }; } }
java.lang.String getName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |