Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
RegistryService |
|
| 1.0;1 |
1 | /* | |
2 | * $Id: RegistryService.java 11234 2008-03-06 23:44:34Z tcarlson $ | |
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.module.management.mbean; | |
12 | ||
13 | import org.mule.api.MuleException; | |
14 | import org.mule.api.registry.Registry; | |
15 | ||
16 | /** | |
17 | * <code>RegistryService</code> exposes service information and actions on | |
18 | * the Registry | |
19 | */ | |
20 | public class RegistryService implements RegistryServiceMBean | |
21 | { | |
22 | private Registry registry; | |
23 | ||
24 | public RegistryService(Registry registry) | |
25 | 0 | { |
26 | 0 | this.registry = registry; |
27 | 0 | } |
28 | ||
29 | public void start() throws MuleException | |
30 | { | |
31 | // registry.start(); | |
32 | 0 | } |
33 | ||
34 | public void stop() throws MuleException | |
35 | { | |
36 | //registry.stop(); | |
37 | 0 | } |
38 | ||
39 | /* | |
40 | public ComponentReference getRootObject() | |
41 | { | |
42 | return registry.getRegistryStore().getRootObject(); | |
43 | } | |
44 | */ | |
45 | ||
46 | // public String getPersistenceMode() | |
47 | // { | |
48 | // return registry.getPersistenceMode(); | |
49 | // } | |
50 | ||
51 | public String getName() | |
52 | { | |
53 | 0 | return "Registry"; |
54 | } | |
55 | } | |
56 |