@Override public boolean endElement(XMLElement element) { String qname = element.getQName(); if (TagNames.METHOD_PARAMS.equals(qname)) { MethodDescriptor desc = getDescriptor(); // this means we have an empty method-params element // which means this method has no input parameter if (desc.getParameterClassNames() == null) { desc.setEmptyParameterClassNames(); } } return super.endElement(element); }
/** * receives notification of the end of an XML element by the Parser * * @param element the xml tag identification * @return true if this node is done processing the XML sub tree */ public boolean endElement(XMLElement element) { String qname = element.getQName(); if (EjbTagNames.METHOD_PARAMS.equals(qname)) { MethodDescriptor desc = (MethodDescriptor) getDescriptor(); // this means we have an empty method-params element // which means this method has no input parameter if (desc.getParameterClassNames() == null) { desc.setEmptyParameterClassNames(); } } return super.endElement(element); }
/** * receives notification of the end of an XML element by the Parser * * @param element the xml tag identification * @return true if this node is done processing the XML sub tree */ @Override public boolean endElement(XMLElement element) { if (EjbTagNames.INTERCEPTOR_ORDER.equals(element.getQName())) { InterceptorBindingDescriptor desc = getDescriptor(); desc.setIsTotalOrdering(true); } else if (EjbTagNames.METHOD_PARAMS.equals(element.getQName())) { // this means we have an empty method-params element // which means this method has no input parameter if (businessMethod.getParameterClassNames() == null) { businessMethod.setEmptyParameterClassNames(); } }else if( EjbTagNames.METHOD.equals(element.getQName()) ) { InterceptorBindingDescriptor bindingDesc = getDescriptor(); businessMethod.setEjbClassSymbol(MethodDescriptor.EJB_BEAN); bindingDesc.setBusinessMethod(businessMethod); if( needsOverloadResolution ) { bindingDesc.setNeedsOverloadResolution(true); } businessMethod = null; needsOverloadResolution = false; } return super.endElement(element); }
businessMethod.setEmptyParameterClassNames();