org.jboss.metadata
Class MethodMetaData<T>

java.lang.Object
  extended by org.jboss.metadata.MetaData
      extended by org.jboss.metadata.OldMetaData<T>
          extended by org.jboss.metadata.MethodMetaData<T>
Type Parameters:
T - the delegate type
All Implemented Interfaces:
Cloneable, XmlLoadable

Deprecated.

@Deprecated
public abstract class MethodMetaData<T>
extends OldMetaData<T>

The combination of the method-permission, container-transaction

The method-permission element specifies that one or more security roles are allowed to invoke one or more enterprise bean methods. The method-permission element consists of an optional description, a list of security role names, or an indicator to specify that the methods are not to be checked for authorization, and a list of method elements. The security roles used in the method-permission element must be defined in the security-role element of the deployment descriptor, and the methods must be methods defined in the enterprise bean's component and/or home interfaces.

The container-transaction element specifies how the container must manage transaction scopes for the enterprise bean's method invocations. The element consists of an optional description, a list of method elements, and a transaction attribute. The transaction attribute is to be applied to all the specified methods.

Version:
$Revision: 37390 $
Author:
Sebastien Alborini, Scott Stark., Adrian Brock

Field Summary
static int ANY_METHOD
          Deprecated. Not used?
static String HOME_TYPE
          Deprecated. The home interface
static String LOCAL_HOME_TYPE
          Deprecated. The local home interface
static String LOCAL_TYPE
          Deprecated. The local interface
static String REMOTE_TYPE
          Deprecated. The remote interface
static String SERVICE_ENDPOINT_TYPE
          Deprecated. The service endpoint interface
 
Fields inherited from class org.jboss.metadata.MetaData
log, TX_MANDATORY, TX_NEVER, TX_NOT_SUPPORTED, TX_REQUIRED, TX_REQUIRES_NEW, TX_SUPPORTS, TX_UNKNOWN
 
Constructor Summary
protected MethodMetaData(T delegate, MethodMetaData methodDelegate)
          Deprecated. Create a new MethodMetaData.
 
Method Summary
 String getEjbName()
          Deprecated. Get the ejb name
 String getInterfaceType()
          Deprecated. Return the interface type name.
 String getMethodName()
          Deprecated. Get the method name
 String[] getMethodParams()
          Deprecated. The method parameters
 Iterator<String> getParams()
          Deprecated. The method param type names.
 Set<String> getRoles()
          Deprecated. Get the roles
 byte getTransactionType()
          Deprecated. Get the transaction type
 boolean isExcluded()
          Deprecated. Whether the method is excluded
 boolean isHomeMethod()
          Deprecated. Whether this is a home method
 boolean isIntfGiven()
          Deprecated. Whether the interface was given
 boolean isLocalHomeMethod()
          Deprecated. Whether this is a local home method
 boolean isLocalMethod()
          Deprecated. Whether this is a local method
 boolean isParamGiven()
          Deprecated. Whether the parameters were given
 boolean isRemoteMethod()
          Deprecated. Whether this is a remote method
 boolean isServiceEndpointMethod()
          Deprecated. Whether this is a service endpoint method
 boolean isUnchecked()
          Deprecated. Whether the method is unchecked
 boolean patternMatches(String name, Class[] arg, InvocationType iface)
          Deprecated. Get whether the pattern matches
 boolean patternMatches(String name, String[] arg, InvocationType iface)
          Deprecated. Get whether the pattern matches
 void setExcluded()
          Deprecated.  
 void setRoles(Set perm)
          Deprecated.  
 void setTransactionType(byte type)
          Deprecated.  
 void setUnchecked()
          Deprecated.  
 
Methods inherited from class org.jboss.metadata.OldMetaData
equals, getDelegate, getMetaData, hashCode, importEjbJarXml, importJbossXml, toString
 
Methods inherited from class org.jboss.metadata.MetaData
clone, getChildrenByTagName, getElementAttribute, getElementAttribute, getElementContent, getElementContent, getElementContent, getFirstElementContent, getFirstElementContent, getOptionalChild, getOptionalChild, getOptionalChildBooleanContent, getOptionalChildBooleanContent, getOptionalChildContent, getOptionalChildContent, getUniqueChild, getUniqueChildContent, importXml, jdk13Enabled
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ANY_METHOD

public static final int ANY_METHOD
Deprecated. 
Not used?

See Also:
Constant Field Values

HOME_TYPE

public static String HOME_TYPE
Deprecated. 
The home interface


LOCAL_HOME_TYPE

public static String LOCAL_HOME_TYPE
Deprecated. 
The local home interface


REMOTE_TYPE

public static String REMOTE_TYPE
Deprecated. 
The remote interface


LOCAL_TYPE

public static String LOCAL_TYPE
Deprecated. 
The local interface


SERVICE_ENDPOINT_TYPE

public static String SERVICE_ENDPOINT_TYPE
Deprecated. 
The service endpoint interface

Constructor Detail

MethodMetaData

protected MethodMetaData(T delegate,
                         MethodMetaData methodDelegate)
Deprecated. 
Create a new MethodMetaData.

Parameters:
delegate - the delegatre
methodDelegate - the method delegate
Throws:
IllegalArgumentException - for a null delegate or methodDelegate
Method Detail

getMethodName

public String getMethodName()
Deprecated. 
Get the method name

Returns:
the method name

getEjbName

public String getEjbName()
Deprecated. 
Get the ejb name

Returns:
the ejb name

isHomeMethod

public boolean isHomeMethod()
Deprecated. 
Whether this is a home method

Returns:
true when a home method

isRemoteMethod

public boolean isRemoteMethod()
Deprecated. 
Whether this is a remote method

Returns:
true when a remote method

isLocalHomeMethod

public boolean isLocalHomeMethod()
Deprecated. 
Whether this is a local home method

Returns:
true when a local home method

isLocalMethod

public boolean isLocalMethod()
Deprecated. 
Whether this is a local method

Returns:
true when a local method

isServiceEndpointMethod

public boolean isServiceEndpointMethod()
Deprecated. 
Whether this is a service endpoint method

Returns:
true when a service endpoint method

getInterfaceType

public String getInterfaceType()
Deprecated. 
Return the interface type name.

Returns:
one of "Home", "LocalHome", "Remote", "Local", "ServiceEndpoint", or null if no interface was specified.

isUnchecked

public boolean isUnchecked()
Deprecated. 
Whether the method is unchecked

Returns:
true for unchecked

isExcluded

public boolean isExcluded()
Deprecated. 
Whether the method is excluded

Returns:
true for excluded

isIntfGiven

public boolean isIntfGiven()
Deprecated. 
Whether the interface was given

Returns:
true when the interface was specified

isParamGiven

public boolean isParamGiven()
Deprecated. 
Whether the parameters were given

Returns:
true when the parameters were given

getParams

public Iterator<String> getParams()
Deprecated. 
The method param type names.

Returns:
the parameter types

getMethodParams

public String[] getMethodParams()
Deprecated. 
The method parameters

Returns:
An array of the method parameter type names

getTransactionType

public byte getTransactionType()
Deprecated. 
Get the transaction type

Returns:
the transaction type

getRoles

public Set<String> getRoles()
Deprecated. 
Get the roles

Returns:
the roles

patternMatches

public boolean patternMatches(String name,
                              Class[] arg,
                              InvocationType iface)
Deprecated. 
Get whether the pattern matches

Parameters:
name - the method name
arg - the method args
iface - the interface type
Returns:
true when it matches

patternMatches

public boolean patternMatches(String name,
                              String[] arg,
                              InvocationType iface)
Deprecated. 
Get whether the pattern matches

Parameters:
name - the method name
arg - the method args
iface - the interface type
Returns:
true when it matches

setRoles

public void setRoles(Set perm)
Deprecated. 

setUnchecked

public void setUnchecked()
Deprecated. 

setExcluded

public void setExcluded()
Deprecated. 

setTransactionType

public void setTransactionType(byte type)
Deprecated. 


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.