// ***** ***** public MethodDescriptor[] getMethodDescriptors() { try { MethodDescriptor md1 = new MethodDescriptor( getMethod( com.ibm.HostPublisher.IntegrationObject.HPubCommon.class, "processRequest")); String procReqDesc = res.getString("procReqDesc"); md1.setShortDescription(procReqDesc); MethodDescriptor md2 = new MethodDescriptor( getMethod( com.ibm.HostPublisher.IntegrationObject.HPubCommon.class, "doHPTransaction")); String doHPTransDesc = res.getString("doHPTransDesc"); md2.setShortDescription(doHPTransDesc); // method for receiving event MethodDescriptor md3 = new MethodDescriptor( getMethod( com.ibm.HostPublisher.IntegrationObject.HPubCommon.class, "hPubStartPerformed")); String hPubStartPerfDesc = res.getString("hPubStartPerfDesc"); md3.setShortDescription(hPubStartPerfDesc); MethodDescriptor[] arrayOfMDs = {md1, md2, md3}; return arrayOfMDs; } catch (IntrospectionException e) { e.printStackTrace(); } return null; }
public MethodDescriptor[] getMethodDescriptors() { try { String stringPackageName = new String("IntegrationObject"); MethodDescriptor mdGetHPubScreenState = new MethodDescriptor( getMethod(IntegrationObject.CountCourtDateDelete_Access.class, "getHPubScreenState")); mdGetHPubScreenState.setShortDescription("getHPubScreenState"); MethodDescriptor mdProcessRequest = new MethodDescriptor( getMethod(IntegrationObject.CountCourtDateDelete_Access.class, "processRequest")); mdProcessRequest.setShortDescription( "This method runs a Host Publisher Integration Object, Remote Int" + "egration Object, or EJB Access Bean from an application componen" + "t. This method throws a BeanException if an error occurs."); MethodDescriptor mdDoHPTransaction = new MethodDescriptor( getMethod(IntegrationObject.CountCourtDateDelete_Access.class, "doHPTransaction")); mdDoHPTransaction.setShortDescription( "This method runs a Host Publisher Integration Object or EJB Acce" + "ss Bean from a servlet or JSP. This method throws a BeanExcepti" + "on if an error occurs."); MethodDescriptor mdHPubStartPerformed = new MethodDescriptor( getMethod(IntegrationObject.CountCourtDateDelete_Access.class, "hPubStartPerformed")); mdHPubStartPerformed.setShortDescription( "When the hPubStartEvent occurs, this method should be called."); MethodDescriptor mdSetHPubScreenState = new MethodDescriptor( getMethod(IntegrationObject.CountCourtDateDelete_Access.class, "setHPubScreenState")); mdSetHPubScreenState.setShortDescription("setHPubScreenState"); MethodDescriptor mdGetHPubMacroMessage = new MethodDescriptor( getMethod( IntegrationObject.CountCourtDateDelete_Access.class, "getHPubMacroMessage")); mdGetHPubMacroMessage.setShortDescription("getHPubMacroMessage"); MethodDescriptor mdSetHPubMacroMessage = new MethodDescriptor( getMethod( IntegrationObject.CountCourtDateDelete_Access.class, "setHPubMacroMessage")); mdSetHPubMacroMessage.setShortDescription("setHPubMacroMessage"); MethodDescriptor[] arrayOfMDs = { mdGetHPubScreenState, mdProcessRequest, mdDoHPTransaction, mdHPubStartPerformed, mdSetHPubScreenState, mdGetHPubMacroMessage, mdSetHPubMacroMessage }; return arrayOfMDs; } catch (IntrospectionException e) { e.printStackTrace(); } return null; }