org.apache.openejb.assembler.classic
Class MethodInfoUtil

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

public class MethodInfoUtil
extends java.lang.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 java.lang.reflect.Method getMethod(java.lang.Class clazz, MethodInfo info)
           
static MethodInfoUtil.Level level(MethodInfo methodInfo)
           
static boolean match(java.lang.reflect.Method methodA, java.lang.reflect.Method methodB)
           
static boolean matches(java.lang.reflect.Method method, MethodInfo methodInfo)
           
static java.util.List<java.lang.reflect.Method> matchingMethods(java.lang.reflect.Method signature, java.lang.Class clazz)
           
static java.util.List<java.lang.reflect.Method> matchingMethods(MethodInfo mi, java.lang.Class clazz)
           
static java.util.List<java.lang.reflect.Method> matchingMethods(MethodInfo mi, java.lang.reflect.Method[] methods)
           
static java.util.List<MethodPermissionInfo> normalizeMethodPermissionInfos(java.util.List<MethodPermissionInfo> infos)
          This method splits the MethodPermissionInfo objects so that there is exactly one MethodInfo per MethodPermissionInfo.
static java.util.Map<java.lang.reflect.Method,MethodAttributeInfo> resolveAttributes(java.util.List<? extends MethodAttributeInfo> infos, DeploymentInfo deploymentInfo)
           
static java.lang.String toString(MethodConcurrencyInfo i)
           
static java.lang.String toString(MethodInfo i)
           
static java.lang.String toString(MethodPermissionInfo i)
           
static java.lang.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 java.util.List<java.lang.reflect.Method> matchingMethods(java.lang.reflect.Method signature,
                                                                       java.lang.Class clazz)

matchingMethods

public static java.util.List<java.lang.reflect.Method> matchingMethods(MethodInfo mi,
                                                                       java.lang.Class clazz)

matchingMethods

public static java.util.List<java.lang.reflect.Method> matchingMethods(MethodInfo mi,
                                                                       java.lang.reflect.Method[] methods)

getMethod

public static java.lang.reflect.Method getMethod(java.lang.Class clazz,
                                                 MethodInfo info)

normalizeMethodPermissionInfos

public static java.util.List<MethodPermissionInfo> normalizeMethodPermissionInfos(java.util.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 java.util.Map<java.lang.reflect.Method,MethodAttributeInfo> resolveAttributes(java.util.List<? extends MethodAttributeInfo> infos,
                                                                                            DeploymentInfo deploymentInfo)

match

public static boolean match(java.lang.reflect.Method methodA,
                            java.lang.reflect.Method methodB)

matches

public static boolean matches(java.lang.reflect.Method method,
                              MethodInfo methodInfo)

view

public static MethodInfoUtil.View view(MethodInfo methodInfo)

level

public static MethodInfoUtil.Level level(MethodInfo methodInfo)

toString

public static java.lang.String toString(MethodInfo i)

toString

public static java.lang.String toString(MethodPermissionInfo i)

toString

public static java.lang.String toString(MethodTransactionInfo i)

toString

public static java.lang.String toString(MethodConcurrencyInfo i)


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