1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
package org.mule.config; |
8 | |
|
9 | |
import java.util.Collections; |
10 | |
import java.util.Map; |
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | 0 | public class StartupContext |
16 | |
{ |
17 | 0 | private static final ThreadLocal<StartupContext> info = new ThreadLocal<StartupContext>() |
18 | 0 | { |
19 | |
@Override |
20 | |
protected StartupContext initialValue() |
21 | |
{ |
22 | 0 | return new StartupContext(); |
23 | |
} |
24 | |
}; |
25 | |
|
26 | 0 | private Map<String, Object> startupOptions = Collections.emptyMap(); |
27 | |
|
28 | |
public static StartupContext get() |
29 | |
{ |
30 | 0 | return info.get(); |
31 | |
} |
32 | |
|
33 | |
public Map<String, Object> getStartupOptions() |
34 | |
{ |
35 | 0 | return Collections.unmodifiableMap(startupOptions); |
36 | |
} |
37 | |
|
38 | |
public void setStartupOptions(Map<String, Object> startupOptions) |
39 | |
{ |
40 | 0 | this.startupOptions = startupOptions; |
41 | 0 | } |
42 | |
} |