Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
ServiceAware |
|
| 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.service; | |
8 | ||
9 | /** | |
10 | * <code>ServiceAware</code> is an injector interface that will supply a | |
11 | * Service to the object. This interface should be implemented by services | |
12 | * managed by Mule that want to receive their Service instance. The | |
13 | * Service will be set before any initialisation method is called. i.e. if the | |
14 | * service implements org.mule.api.lifecycle.Initialisable, the descriptor will be | |
15 | * set before initialise() method is called. | |
16 | * | |
17 | * @see org.mule.api.lifecycle.Initialisable | |
18 | * @see Service | |
19 | */ | |
20 | public interface ServiceAware | |
21 | { | |
22 | ||
23 | void setService(Service service); | |
24 | ||
25 | } |