org.jboss.metadata.ejb.spec
Class MethodsMetaData
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<MethodMetaData>
org.jboss.metadata.ejb.spec.MethodsMetaData
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable<MethodMetaData>, Collection<MethodMetaData>, List<MethodMetaData>, RandomAccess
- Direct Known Subclasses:
- CurrentMessageMetaData
public class MethodsMetaData
- extends ArrayList<MethodMetaData>
MethodsMetaData.
- Version:
- $Revision: 1.1 $
- Author:
- Adrian Brock
- See Also:
- Serialized Form
Method Summary |
MethodMetaData |
bestMatch(String methodName,
Class[] params,
MethodInterfaceType interfaceType,
MethodMetaData bestMatch)
Whether this matches |
MethodMetaData |
bestMatch(String methodName,
String[] params,
MethodInterfaceType interfaceType,
MethodMetaData bestMatch)
Whether this matches |
MethodsMetaData |
getMethodsByEjbName(String ejbName)
Get the methods for an ejb |
boolean |
matches(String methodName,
Class[] params,
MethodInterfaceType interfaceType)
Whether this matches |
boolean |
matches(String methodName,
String[] params,
MethodInterfaceType interfaceType)
Whether this matches |
void |
merge(MethodsMetaData override,
MethodsMetaData original)
|
Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
MethodsMetaData
public MethodsMetaData()
matches
public boolean matches(String methodName,
Class[] params,
MethodInterfaceType interfaceType)
- Whether this matches
- Parameters:
methodName
- the method nameparams
- the parametersinterfaceType
- the interface type
- Returns:
- true when it matches
matches
public boolean matches(String methodName,
String[] params,
MethodInterfaceType interfaceType)
- Whether this matches
- Parameters:
methodName
- the method nameparams
- the parametersinterfaceType
- the interface type
- Returns:
- true when it matches
bestMatch
public MethodMetaData bestMatch(String methodName,
Class[] params,
MethodInterfaceType interfaceType,
MethodMetaData bestMatch)
- Whether this matches
- Parameters:
methodName
- the method nameparams
- the parametersinterfaceType
- the interface typebestMatch
- the previous best match
- Returns:
- best match
bestMatch
public MethodMetaData bestMatch(String methodName,
String[] params,
MethodInterfaceType interfaceType,
MethodMetaData bestMatch)
- Whether this matches
- Parameters:
methodName
- the method nameparams
- the parametersinterfaceType
- the interface typebestMatch
- the previous best match
- Returns:
- best match
getMethodsByEjbName
public MethodsMetaData getMethodsByEjbName(String ejbName)
- Get the methods for an ejb
- Parameters:
ejbName
- the ejb name
- Returns:
- the methods or null for no methods
- Throws:
IllegalArgumentException
- for a null ejb name
merge
public void merge(MethodsMetaData override,
MethodsMetaData original)
Copyright © 2009 JBoss Inc.. All Rights Reserved.