Michiel Meeuwissen wrote:
Since there is a Set getFunctions on Cloud you may also expect it on Node
and Module? (But, without argument then).

Could be easily added.

Perhaps. But I deliberately did not choose 'contains' back then, because the
interface already has a 'contains' method, which means something quite
different (does not look at the parameter definition, but at the parameter
value).

It is similar to Map: containsKey(). Essentially the Parameter is a Key in Parameters. It follows the naming conventions used in these classes.


I would have expected to more simple:

public Function getFunction(String functionName) {
        return parent.getFunction(this, functionName);
    }

And what would parent.getFunction(this, functionName) return?
Likely a wrapped function (because you have to return a 'Function' object that takes the parameter 'node' into account).
So this is possible, but WrappedFunction is likely still needed (only the it is used in MMObjectBuilder when instnatiating a function for a specific node).


--
Pierre van Rooden
Mediapark, C 107 tel. +31 (0)35 6772815
"Some Drink at the Fountain of Knowledge. Others Just Gurgle."

_______________________________________________
Developers mailing list
[EMAIL PROTECTED]
http://lists.mmbase.org/mailman/listinfo/developers

Reply via email to