public Op make() { Op make = new Op("make", new Contract("obix:Nil"), new Contract("obix:Watch")); make.setHref(new Uri("make")); make.setOperationHandler( new OperationHandler() { public Obj invoke(Obj in) { return doMake(); } }); return make; }
Invoke(Op op) { super(op.toDisplayName(), "x16/exclaim.png", null); this.op = op; }