Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
MuleContextBuilder |
|
| 1.0;1 |
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.api.context; | |
8 | ||
9 | import org.mule.api.MuleContext; | |
10 | import org.mule.api.config.MuleConfiguration; | |
11 | import org.mule.api.lifecycle.LifecycleManager; | |
12 | import org.mule.context.notification.ServerNotificationManager; | |
13 | ||
14 | import javax.resource.spi.work.WorkListener; | |
15 | ||
16 | /** | |
17 | * Builder that is used to build instances of {@link MuleContext}. Implementing | |
18 | * classes are stateful and should provide public chainable setters for configuring | |
19 | * the builder instance and no public getters. | |
20 | */ | |
21 | public interface MuleContextBuilder | |
22 | { | |
23 | /** | |
24 | * Builds a new {@link MuleContext} instance using configured builder instance. | |
25 | * Does not initialise or start MuleContext, only constructs the instance. | |
26 | */ | |
27 | MuleContext buildMuleContext(); | |
28 | ||
29 | void setWorkManager(WorkManager workManager); | |
30 | ||
31 | void setWorkListener(WorkListener workListener); | |
32 | ||
33 | void setNotificationManager(ServerNotificationManager notificationManager); | |
34 | ||
35 | void setLifecycleManager(LifecycleManager lifecycleManager); | |
36 | ||
37 | void setMuleConfiguration(MuleConfiguration muleConfiguration); | |
38 | } |