org.apache.openejb.config
Class DeploymentsResolver
java.lang.Object
org.apache.openejb.config.DeploymentsResolver
public class DeploymentsResolver
- extends Object
- Version:
- $Rev: 903438 $ $Date: 2010-01-26 22:51:07 +0100 (Di, 26. Jan 2010) $
Method Summary |
static void |
loadFrom(Deployments dep,
FileUtils path,
List<String> jarList)
|
static void |
loadFromClasspath(FileUtils base,
List<String> jarList,
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 |
DeploymentsResolver
public DeploymentsResolver()
loadFrom
public static void loadFrom(Deployments dep,
FileUtils path,
List<String> jarList)
loadFromClasspath
public static void loadFromClasspath(FileUtils base,
List<String> jarList,
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-2013 The Apache OpenEJB development community. All Rights Reserved.