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.jmx;
09:
10: import javax.management.ReflectionException;
11: import javax.management.MBeanException;
12: import javax.management.Attribute;
13: import javax.management.AttributeNotFoundException;
14: import javax.management.InvalidAttributeValueException;
15: import javax.management.AttributeList;
16:
17: /**
18: *
19: * @author <a href="mailto:young_yy@hotmail.com">Young Yang</a>
20: */
21:
22: public interface MBeanInstantiator {
23:
24: public Object instantiate(Class mbeanClass)
25: throws ReflectionException, MBeanException;
26:
27: public Object instantiate(Class mbeanClass, Object[] params,
28: String[] signatures) throws ReflectionException,
29: MBeanException;
30:
31: // public Object invoke(MBeanMetaData meta, String operationName, Object params[], String[] signatures) throws MBeanException, ReflectionException;
32: //
33: // public Object getAttribute(MBeanMetaData meta, String attribute) throws MBeanException, AttributeNotFoundException, ReflectionException;
34: //
35: // public void setAttribute(MBeanMetaData meta, Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException;
36: //
37: // public AttributeList getAttributes(MBeanMetaData meta, String[] attributes) throws MBeanException, AttributeNotFoundException, ReflectionException;
38: //
39: // public AttributeList setAttributes(MBeanMetaData meta, AttributeList attributes) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException;
40:
41: }
|