01: /* JFox, the OpenSource J2EE Application Server
02: *
03: * Copyright (C) 2002 huihoo.com
04: * Distributable under GNU LGPL license
05: * See the GNU Lesser General Public License for more details.
06: */
07:
08: package org.huihoo.jfox.persistent;
09:
10: import javax.management.MBeanServer;
11: import javax.management.MBeanRegistration;
12: import javax.management.ObjectName;
13:
14: /**
15: *
16: * @author <a href="mailto:young_yy@hotmail.com">Young Yang</a>
17: */
18:
19: public abstract class Persistenter implements PersistenterMBean,
20: MBeanRegistration {
21: protected MBeanServer server = null;
22:
23: public ObjectName preRegister(MBeanServer mbeanserver,
24: ObjectName objectname) throws Exception {
25: server = mbeanserver;
26: if (objectname == null)
27: objectname = new ObjectName(server.getDefaultDomain(),
28: "Service", this .toString());
29: return objectname;
30: }
31:
32: public void postRegister(Boolean value) {
33:
34: }
35:
36: public void preDeregister() throws Exception {
37:
38: }
39:
40: public void postDeregister() {
41:
42: }
43:
44: }
|