public void finished() { ret.setExceptionIfUndone(new ServiceNotFoundException(type.toString())); }
/** * Get the name with parameters, e.g. method1(String, int) * but without return type. */ public String getNameWithParameters() { StringBuffer buf = new StringBuffer(); buf.append(getName()); if(parametertypes!=null && parametertypes.length>0) { buf.append("("); for(int i=0; i<parametertypes.length; i++) { ClassInfo ci = parametertypes[i]; buf.append(SReflect.getUnqualifiedTypeName(ci.toString())); if(i+1<parametertypes.length) buf.append(", "); } buf.append(")"); } return buf.toString(); } }
vact.getMActivity().setProperty(MActivity.IFACE, iface==null? null: iface.toString()+".class", false); vact.getMActivity().setProperty(MActivity.ISSERVICE, iface==null? null: "true", true);
public void actionPerformed(ActionEvent e) { ClassInfo ci = (ClassInfo)cbranking.getSelectedItem(); if(ci!=null) { // System.out.println("setting: "+method); MProperty mprop = task.getProperties().get(PROPERTY_RANKING); UnparsedExpression uexp = new UnparsedExpression(null, String.class, "\""+ci.toString()+"\"", null); mprop.setInitialValue(uexp); } } });