org.apache.openejb.assembler.classic
Class MethodConcurrencyBuilder

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

public class MethodConcurrencyBuilder
extends Object

Version:
$Rev: 1153797 $ $Date: 2011-08-04 09:09:44 +0000 (Thu, 04 Aug 2011) $

Nested Class Summary
static class MethodConcurrencyBuilder.MethodConcurrencyComparator
           
 
Field Summary
static Logger logger
           
 
Constructor Summary
MethodConcurrencyBuilder()
           
 
Method Summary
static void applyConcurrencyAttributes(BeanContext beanContext, List<MethodConcurrencyInfo> methodConcurrencyInfos)
           
 void build(HashMap<String,BeanContext> deployments, List<MethodConcurrencyInfo> methodConcurrencys)
           
static void normalize(List<MethodConcurrencyInfo> infos, List<MethodConcurrencyInfo> lockInfos, List<MethodConcurrencyInfo> accessTimeoutInfos)
          This method splits the MethodConcurrencyInfo objects so that there is exactly one MethodInfo per MethodConcurrencyInfo.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static final Logger logger
Constructor Detail

MethodConcurrencyBuilder

public MethodConcurrencyBuilder()
Method Detail

build

public void build(HashMap<String,BeanContext> deployments,
                  List<MethodConcurrencyInfo> methodConcurrencys)
           throws OpenEJBException
Throws:
OpenEJBException

applyConcurrencyAttributes

public static void applyConcurrencyAttributes(BeanContext beanContext,
                                              List<MethodConcurrencyInfo> methodConcurrencyInfos)
                                       throws OpenEJBException
Throws:
OpenEJBException

normalize

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

Parameters:
infos -


Copyright © 1999-2011 The Apache Software Foundation. All Rights Reserved.