Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
ServiceAware |
|
| 1.0;1 |
1 | /* | |
2 | * $Id: ServiceAware.java 19191 2010-08-25 21:05:23Z tcarlson $ | |
3 | * -------------------------------------------------------------------------------------- | |
4 | * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com | |
5 | * | |
6 | * The software in this package is published under the terms of the CPAL v1.0 | |
7 | * license, a copy of which has been included with this distribution in the | |
8 | * LICENSE.txt file. | |
9 | */ | |
10 | ||
11 | package org.mule.api.service; | |
12 | ||
13 | /** | |
14 | * <code>ServiceAware</code> is an injector interface that will supply a | |
15 | * Service to the object. This interface should be implemented by services | |
16 | * managed by Mule that want to receive their Service instance. The | |
17 | * Service will be set before any initialisation method is called. i.e. if the | |
18 | * service implements org.mule.api.lifecycle.Initialisable, the descriptor will be | |
19 | * set before initialise() method is called. | |
20 | * | |
21 | * @see org.mule.api.lifecycle.Initialisable | |
22 | * @see Service | |
23 | */ | |
24 | public interface ServiceAware | |
25 | { | |
26 | ||
27 | void setService(Service service); | |
28 | ||
29 | } |