Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
ServiceAware |
|
| 1.0;1 |
1 | /* | |
2 | * $Id: ServiceAware.java 10529 2008-01-25 05:58:36Z dfeist $ | |
3 | * -------------------------------------------------------------------------------------- | |
4 | * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.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 | import org.mule.api.config.ConfigurationException; | |
14 | ||
15 | /** | |
16 | * <code>ServiceAware</code> is an injector interface that will supply a | |
17 | * Service to the object. This interface should be implemented by services | |
18 | * managed by Mule that want to receive their Service instance. The | |
19 | * Service will be set before any initialisation method is called. i.e. if the | |
20 | * service implements org.mule.api.lifecycle.Initialisable, the descriptor will be | |
21 | * set before initialise() method is called. | |
22 | * | |
23 | * @see org.mule.api.lifecycle.Initialisable | |
24 | * @see Service | |
25 | */ | |
26 | public interface ServiceAware | |
27 | { | |
28 | ||
29 | void setService(Service service) throws ConfigurationException; | |
30 | ||
31 | } |