org.jboss.metadata.ejb.spec
Class MethodsMetaData

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<MethodMetaData>
              extended by 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

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
MethodsMetaData()
           
 
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
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

MethodsMetaData

public MethodsMetaData()
Method Detail

matches

public boolean matches(String methodName,
                       Class[] params,
                       MethodInterfaceType interfaceType)
Whether this matches

Parameters:
methodName - the method name
params - the parameters
interfaceType - 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 name
params - the parameters
interfaceType - 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 name
params - the parameters
interfaceType - the interface type
bestMatch - 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 name
params - the parameters
interfaceType - the interface type
bestMatch - 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.