Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
MuleContainerSystemClassLoader |
|
| 0.0;0 |
1 | /* | |
2 | * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com | |
3 | * The software in this package is published under the terms of the CPAL v1.0 | |
4 | * license, a copy of which has been included with this distribution in the | |
5 | * LICENSE.txt file. | |
6 | */ | |
7 | package org.mule.module.reboot; | |
8 | ||
9 | import java.net.URL; | |
10 | import java.net.URLClassLoader; | |
11 | import java.util.List; | |
12 | ||
13 | /** | |
14 | * Loads a standard $MULE_HOME/lib/* hierarchy. | |
15 | */ | |
16 | public class MuleContainerSystemClassLoader extends URLClassLoader | |
17 | { | |
18 | //protected transient Log logger = LogFactory.getLog(getClass()); | |
19 | ||
20 | public MuleContainerSystemClassLoader(DefaultMuleClassPathConfig classPath) | |
21 | { | |
22 | 0 | super(new URL[0]); |
23 | ||
24 | try | |
25 | { | |
26 | 0 | final List<URL> urlsList = classPath.getURLs(); |
27 | 0 | for (URL url : urlsList) |
28 | { | |
29 | //if (logger.isDebugEnabled()) | |
30 | //{ | |
31 | // logger.debug("adding URL " + url); | |
32 | //} | |
33 | ||
34 | 0 | addURL(url); |
35 | } | |
36 | } | |
37 | 0 | catch (Exception e) |
38 | { | |
39 | //if (logger.isDebugEnabled()) | |
40 | //{ | |
41 | // logger.debug(e); | |
42 | //} | |
43 | 0 | } |
44 | 0 | } |
45 | } |