org.apache.openejb.assembler.classic
Class MethodConcurrencyBuilder

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

public class MethodConcurrencyBuilder
extends java.lang.Object

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

Nested Class Summary
static class MethodConcurrencyBuilder.MethodConcurrencyComparator
           
 
Field Summary
static Logger logger
           
 
Constructor Summary
MethodConcurrencyBuilder()
           
 
Method Summary
static void applyConcurrencyAttributes(CoreDeploymentInfo deploymentInfo, java.util.List<MethodConcurrencyInfo> methodConcurrencyInfos)
           
 void build(java.util.HashMap<java.lang.String,DeploymentInfo> deployments, java.util.List<MethodConcurrencyInfo> methodConcurrencys)
           
static java.util.List<MethodConcurrencyInfo> normalize(java.util.List<MethodConcurrencyInfo> infos)
          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(java.util.HashMap<java.lang.String,DeploymentInfo> deployments,
                  java.util.List<MethodConcurrencyInfo> methodConcurrencys)
           throws OpenEJBException
Throws:
OpenEJBException

applyConcurrencyAttributes

public static void applyConcurrencyAttributes(CoreDeploymentInfo deploymentInfo,
                                              java.util.List<MethodConcurrencyInfo> methodConcurrencyInfos)
                                       throws OpenEJBException
Throws:
OpenEJBException

normalize

public static java.util.List<MethodConcurrencyInfo> normalize(java.util.List<MethodConcurrencyInfo> infos)
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 -
Returns:
a normalized list of new MethodConcurrencyInfo objects


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