org.apache.openejb.assembler.classic
Class MethodInfoUtil

java.lang.Object
  extended by org.apache.openejb.assembler.classic.MethodInfoUtil

public class MethodInfoUtil
extends Object

Version:
$Rev: 710022 $ $Date: 2008-11-03 09:40:14 +0100 (Mo, 03. Nov 2008) $

Nested Class Summary
static class MethodInfoUtil.BaseComparator<T>
           
static class MethodInfoUtil.Level
           
static class MethodInfoUtil.MethodPermissionComparator
           
static class MethodInfoUtil.View
           
 
Constructor Summary
MethodInfoUtil()
           
 
Method Summary
static Method getMethod(Class clazz, MethodInfo info)
           
static MethodInfoUtil.Level level(MethodInfo methodInfo)
           
static boolean match(Method methodA, Method methodB)
           
static boolean matches(Method method, MethodInfo methodInfo)
           
static List<Method> matchingMethods(Method signature, Class clazz)
           
static List<Method> matchingMethods(MethodInfo mi, Class clazz)
           
static List<Method> matchingMethods(MethodInfo mi, Method[] methods)
           
static List<MethodPermissionInfo> normalizeMethodPermissionInfos(List<MethodPermissionInfo> infos)
          This method splits the MethodPermissionInfo objects so that there is exactly one MethodInfo per MethodPermissionInfo.
static Map<Method,MethodAttributeInfo> resolveAttributes(List<? extends MethodAttributeInfo> infos, DeploymentInfo deploymentInfo)
           
static String toString(MethodConcurrencyInfo i)
           
static String toString(MethodInfo i)
           
static String toString(MethodPermissionInfo i)
           
static String toString(MethodTransactionInfo i)
           
static MethodInfoUtil.View view(MethodInfo methodInfo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodInfoUtil

public MethodInfoUtil()
Method Detail

matchingMethods

public static List<Method> matchingMethods(Method signature,
                                           Class clazz)

matchingMethods

public static List<Method> matchingMethods(MethodInfo mi,
                                           Class clazz)

matchingMethods

public static List<Method> matchingMethods(MethodInfo mi,
                                           Method[] methods)

getMethod

public static Method getMethod(Class clazz,
                               MethodInfo info)

normalizeMethodPermissionInfos

public static List<MethodPermissionInfo> normalizeMethodPermissionInfos(List<MethodPermissionInfo> infos)
This method splits the MethodPermissionInfo objects so that there is exactly one MethodInfo per MethodPermissionInfo. A single MethodPermissionInfo with three MethodInfos would be expanded into three MethodPermissionInfo with one MethodInfo each. The MethodPermissionInfo list is then sorted from least to most specific.

Parameters:
infos -
Returns:
a normalized list of new MethodPermissionInfo objects

resolveAttributes

public static Map<Method,MethodAttributeInfo> resolveAttributes(List<? extends MethodAttributeInfo> infos,
                                                                DeploymentInfo deploymentInfo)

match

public static boolean match(Method methodA,
                            Method methodB)

matches

public static boolean matches(Method method,
                              MethodInfo methodInfo)

view

public static MethodInfoUtil.View view(MethodInfo methodInfo)

level

public static MethodInfoUtil.Level level(MethodInfo methodInfo)

toString

public static String toString(MethodInfo i)

toString

public static String toString(MethodPermissionInfo i)

toString

public static String toString(MethodTransactionInfo i)

toString

public static String toString(MethodConcurrencyInfo i)


Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.