org.apache.openejb.config
Class DeploymentsResolver

java.lang.Object
  extended by org.apache.openejb.config.DeploymentsResolver

public class DeploymentsResolver
extends java.lang.Object

Version:
$Rev: 903438 $ $Date: 2010-01-26 22:51:07 +0100 (Di, 26. Jan 2010) $

Constructor Summary
DeploymentsResolver()
           
 
Method Summary
static void loadFrom(Deployments dep, FileUtils path, java.util.List<java.lang.String> jarList)
           
static void loadFromClasspath(FileUtils base, java.util.List<java.lang.String> jarList, java.lang.ClassLoader classLoader)
          The algorithm of OpenEJB deployments class-path inclusion and exclusion is implemented as follows: 1- If the string value of the resource URL matches the include class-path pattern Then load this resource 2- If the string value of the resource URL matches the exclude class-path pattern Then ignore this resource 3- If the include and exclude class-path patterns are not defined Then load this resource

The previous steps are based on the following points: 1- Include class-path pattern has the highst priority This helps in case both patterns are defined using the same values.

 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeploymentsResolver

public DeploymentsResolver()
Method Detail

loadFrom

public static void loadFrom(Deployments dep,
                            FileUtils path,
                            java.util.List<java.lang.String> jarList)

loadFromClasspath

public static void loadFromClasspath(FileUtils base,
                                     java.util.List<java.lang.String> jarList,
                                     java.lang.ClassLoader classLoader)
The algorithm of OpenEJB deployments class-path inclusion and exclusion is implemented as follows: 1- If the string value of the resource URL matches the include class-path pattern Then load this resource 2- If the string value of the resource URL matches the exclude class-path pattern Then ignore this resource 3- If the include and exclude class-path patterns are not defined Then load this resource

The previous steps are based on the following points: 1- Include class-path pattern has the highst priority This helps in case both patterns are defined using the same values. This appears in step 1 and 2 of the above algorithm. 2- Loading the resource is the default behaviour in case of not defining a value for any class-path pattern This appears in step 3 of the above algorithm.



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