org.apache.openejb.jee
Class Method

java.lang.Object
  extended by org.apache.openejb.jee.Method

public class Method
extends Object

ejb-jar_3_1.xsd

Java class for methodType complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="methodType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="description" type="{http://java.sun.com/xml/ns/javaee}descriptionType" maxOccurs="unbounded" minOccurs="0"/>
         <element name="ejb-name" type="{http://java.sun.com/xml/ns/javaee}ejb-nameType"/>
         <element name="method-intf" type="{http://java.sun.com/xml/ns/javaee}method-intfType" minOccurs="0"/>
         <element name="method-name" type="{http://java.sun.com/xml/ns/javaee}method-nameType"/>
         <element name="method-params" type="{http://java.sun.com/xml/ns/javaee}method-paramsType" minOccurs="0"/>
       </sequence>
       <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  String className
           
protected  TextMap description
           
protected  String ejbName
           
protected  String id
           
protected  MethodIntf methodIntf
           
protected  String methodName
           
protected  MethodParams methodParams
           
 
Constructor Summary
Method()
           
Method(String ejbName, Method method)
           
Method(String ejbName, String methodName)
           
Method(String ejbName, String methodName, String... parameters)
           
Method(String ejbName, String className, String methodName)
           
Method(String ejbName, String className, String methodName, String... parameters)
           
 
Method Summary
 String getClassName()
           
 String getDescription()
           
 Text[] getDescriptions()
           
 String getEjbName()
           
 String getId()
           
 MethodIntf getMethodIntf()
           
 String getMethodName()
           
 MethodParams getMethodParams()
           
 void setDescriptions(Text[] text)
           
 void setEjbName(String value)
          The ejb-nameType specifies an enterprise bean's name.
 void setId(String value)
           
 void setMethodIntf(MethodIntf value)
           
 void setMethodName(String value)
          contains a name of an enterprise bean method or the asterisk (*) character.
 void setMethodParams(MethodParams value)
           
 Method withInterface(MethodIntf methodIntf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

description

protected TextMap description

ejbName

protected String ejbName

className

protected String className

methodIntf

protected MethodIntf methodIntf

methodName

protected String methodName

methodParams

protected MethodParams methodParams

id

protected String id
Constructor Detail

Method

public Method(String ejbName,
              Method method)

Method

public Method(String ejbName,
              String methodName,
              String... parameters)

Method

public Method(String ejbName,
              String className,
              String methodName,
              String... parameters)

Method

public Method()

Method

public Method(String ejbName,
              String methodName)

Method

public Method(String ejbName,
              String className,
              String methodName)
Method Detail

getClassName

public String getClassName()

getDescriptions

public Text[] getDescriptions()

setDescriptions

public void setDescriptions(Text[] text)

getDescription

public String getDescription()

getEjbName

public String getEjbName()

setEjbName

public void setEjbName(String value)
The ejb-nameType specifies an enterprise bean's name. It is used by ejb-name elements. This name is assigned by the ejb-jar file producer to name the enterprise bean in the ejb-jar file's deployment descriptor. The name must be unique among the names of the enterprise beans in the same ejb-jar file.

There is no architected relationship between the used ejb-name in the deployment descriptor and the JNDI name that the Deployer will assign to the enterprise bean's home.

The name for an entity bean must conform to the lexical rules for an NMTOKEN.

Example:

EmployeeService


getMethodIntf

public MethodIntf getMethodIntf()

setMethodIntf

public void setMethodIntf(MethodIntf value)

withInterface

public Method withInterface(MethodIntf methodIntf)

getMethodName

public String getMethodName()

setMethodName

public void setMethodName(String value)
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 client view interfaces.


getMethodParams

public MethodParams getMethodParams()

setMethodParams

public void setMethodParams(MethodParams value)

getId

public String getId()

setId

public void setId(String value)


Copyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.