org.apache.openejb.config
Class DeploymentsResolver
java.lang.Object
org.apache.openejb.config.DeploymentsResolver
- All Implemented Interfaces:
- DeploymentFilterable
public class DeploymentsResolver
- extends Object
- implements DeploymentFilterable
- Version:
- $Rev: 1153797 $ $Date: 2011-08-04 09:09:44 +0000 (Thu, 04 Aug 2011) $
|
Method Summary |
static void |
loadFrom(Deployments dep,
FileUtils path,
List<URL> jarList)
|
static void |
loadFromClasspath(FileUtils base,
List<URL> 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 highest priority
This helps in case both patterns are defined using the same values. |
static void |
processUrls(List<URL> urls,
ClassLoader classLoader,
Set<RequireDescriptors> requireDescriptors,
FileUtils base,
List<URL> jarList)
|
| 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<URL> jarList)
loadFromClasspath
public static void loadFromClasspath(FileUtils base,
List<URL> 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 highest 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.
processUrls
public static void processUrls(List<URL> urls,
ClassLoader classLoader,
Set<RequireDescriptors> requireDescriptors,
FileUtils base,
List<URL> jarList)
Copyright © 1999-2011 The Apache Software Foundation. All Rights Reserved.