/** Constructor for styles 2 and 1. ** Style 1 iff ALL_METHODS is used */ public MethodDescriptor(String name, String description, String ejbClassSymbol) { super(name, description); this.parameterClassNames = null; this.setEjbClassSymbol(ejbClassSymbol); }
/** Construct an exact method descriptor from the given method object, classloader and ejb descriptor. */ public MethodDescriptor(Method method, String methodIntf) { this(method); isExact=true; this.setEjbClassSymbol(methodIntf); }
/** Construct an exact method descriptor from the given method object, classloader and ejb descriptor. */ public MethodDescriptor(Method method, String methodIntf) { this(method); isExact=true; this.setEjbClassSymbol(methodIntf); }
/** Constructor for styles 2 and 1. ** Style 1 iff ALL_METHODS is used */ public MethodDescriptor(String name, String description, String ejbClassSymbol) { super(name, description); this.parameterClassNames = null; this.setEjbClassSymbol(ejbClassSymbol); }
/** * Constructs a method descriptor corresponding to methods on the ejb class defined by the ejbClassSymbol (or home * and remote if null) with the same name (or all if ALL_METHODS) and paramater list (or just all by name of this is null). * (Styles 1 2 and 3 in the ejb specification) */ public MethodDescriptor(String name, String description, String[] parameterClassNames, String ejbClassSymbol) { super(name, description); if (name == null) { super.setName(""); } if (parameterClassNames != null) convertToAppropriateFormat (parameterClassNames); this.setEjbClassSymbol(ejbClassSymbol); }
/** * Constructs a method descriptor corresponding to methods on the ejb class defined by the ejbClassSymbol (or home * and remote if null) with the same name (or all if ALL_EJB_METHODS) and paramater list (or just all by name of this is null). * (Styles 1 2 and 3 in the ejb specification) */ public MethodDescriptor(String name, String description, String[] parameterClassNames, String ejbClassSymbol) { super(name, description); if (name == null) { super.setName(""); } if (parameterClassNames != null) convertToAppropriateFormat (parameterClassNames); this.setEjbClassSymbol(ejbClassSymbol); }
/** * 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.setEjbClassSymbol(MethodDescriptor.EJB_BEAN); bindingDesc.setBusinessMethod(businessMethod);