|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.metadata.MetaData
org.jboss.metadata.OldMetaData<T>
org.jboss.metadata.MethodMetaData<T>
T
- the delegate type
@Deprecated public abstract class MethodMetaData<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.
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 java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int ANY_METHOD
public static String HOME_TYPE
public static String LOCAL_HOME_TYPE
public static String REMOTE_TYPE
public static String LOCAL_TYPE
public static String SERVICE_ENDPOINT_TYPE
Constructor Detail |
---|
protected MethodMetaData(T delegate, MethodMetaData methodDelegate)
delegate
- the delegatremethodDelegate
- the method delegate
IllegalArgumentException
- for a null delegate or methodDelegateMethod Detail |
---|
public String getMethodName()
public String getEjbName()
public boolean isHomeMethod()
public boolean isRemoteMethod()
public boolean isLocalHomeMethod()
public boolean isLocalMethod()
public boolean isServiceEndpointMethod()
public String getInterfaceType()
public boolean isUnchecked()
public boolean isExcluded()
public boolean isIntfGiven()
public boolean isParamGiven()
public Iterator<String> getParams()
public String[] getMethodParams()
public byte getTransactionType()
public Set<String> getRoles()
public boolean patternMatches(String name, Class[] arg, InvocationType iface)
name
- the method namearg
- the method argsiface
- the interface type
public boolean patternMatches(String name, String[] arg, InvocationType iface)
name
- the method namearg
- the method argsiface
- the interface type
public void setRoles(Set perm)
public void setUnchecked()
public void setExcluded()
public void setTransactionType(byte type)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |