org.openmdx.kernel.application.deploy.spi
Interface Deployment.Method

All Known Implementing Classes:
MethodDeploymentDescriptor
Enclosing interface:
Deployment

public static interface Deployment.Method

Method

The methodType is used to denote a method of an enterprise bean's home, component, and/or web service endpoint interface, or, in the case of a message-driven bean, the bean's message listener method, or a set of such methods. The ejb-name element must be the name of one of the enterprise beans declared in the deployment descriptor; the optional method-intf element allows to distinguish between a method with the same signature that is multiply defined across the home, component, and/or web service endpoint interfaces; the method-name element specifies the method name; and the optional method-params elements identify a single method among multiple methods with an overloaded method name.

There are three possible styles of using methodType element within a method element

  1.  
     <method>
       <ejb-name>EJBNAME</ejb-name>
       <method-name>*</method-name>
     </method>
     
    This style is used to refer to all the methods of the specified enterprise bean's home, component, and/or web service endpoint interfaces.
  2.  
     <method>
       <ejb-name>EJBNAME</ejb-name>
       <method-name>METHOD</method-name>
     </method>
     
    This style is used to refer to the specified method of the specified enterprise bean. If there are multiple methods with the same overloaded name, the element of this style refers to all the methods with the overloaded name.
  3.  
     <method>
       <ejb-name>EJBNAME</ejb-name>
       <method-name>METHOD</method-name>
       <method-params>
         <method-param>PARAM-1</method-param>
         <method-param>PARAM-2</method-param>
         ...
         <method-param>PARAM-n</method-param>
       </method-params>
     </method>
     
    
    


    Method Summary
     String getMethodIntf()
              The method-intf element allows a method element to differentiate between the methods with the same name and signature that are multiply defined across the home and component interfaces (e.g., in both an enterprise bean's remote and local interfaces, or in both an enterprise bean's home and remote interfaces, etc.)
     String getMethodName()
              The method-name element contains a name of an enterprise bean method, or the asterisk (*) character.
     List getMethodParams()
              The method-params element contains a list of the fully-qualified Java type names of the method parameters.^
     

    Method Detail

    getMethodIntf

    String getMethodIntf()
    The method-intf element allows a method element to differentiate between the methods with the same name and signature that are multiply defined across the home and component interfaces (e.g., in both an enterprise bean's remote and local interfaces, or in both an enterprise bean's home and remote interfaces, etc.)

    The method-intf element must be one of the following:

    • Home
    • Remote
    • LocalHome
    • Local

    Returns:
    the method's interface

    getMethodName

    String getMethodName()
    The method-name element contains a name of an enterprise bean method, or the asterisk (*) character. The asterisk is used when the element^ denotes all the methods of an enterprise bean's component and home interfaces.

    Returns:
    the method's name

    getMethodParams

    List getMethodParams()
    The method-params element contains a list of the fully-qualified Java type names of the method parameters.^

    Returns:
    the moethod's paramete types


    This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.