01: /*
02: * $Id: RegistryService.java 11234 2008-03-06 23:44:34Z tcarlson $
03: * --------------------------------------------------------------------------------------
04: * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
05: *
06: * The software in this package is published under the terms of the CPAL v1.0
07: * license, a copy of which has been included with this distribution in the
08: * LICENSE.txt file.
09: */
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: private Registry registry;
22:
23: public RegistryService(Registry registry) {
24: this .registry = registry;
25: }
26:
27: public void start() throws MuleException {
28: // registry.start();
29: }
30:
31: public void stop() throws MuleException {
32: //registry.stop();
33: }
34:
35: /*
36: public ComponentReference getRootObject()
37: {
38: return registry.getRegistryStore().getRootObject();
39: }
40: */
41:
42: // public String getPersistenceMode()
43: // {
44: // return registry.getPersistenceMode();
45: // }
46: public String getName() {
47: return "Registry";
48: }
49: }
|