01: /*
02: * JBoss, Home of Professional Open Source.
03: * Copyright 2006, Red Hat Middleware LLC, and individual contributors
04: * as indicated by the @author tags. See the copyright.txt file in the
05: * distribution for a full listing of individual contributors.
06: *
07: * This is free software; you can redistribute it and/or modify it
08: * under the terms of the GNU Lesser General Public License as
09: * published by the Free Software Foundation; either version 2.1 of
10: * the License, or (at your option) any later version.
11: *
12: * This software is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15: * Lesser General Public License for more details.
16: *
17: * You should have received a copy of the GNU Lesser General Public
18: * License along with this software; if not, write to the Free
19: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20: * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21: */
22: package org.jboss.mx.server;
23:
24: import javax.management.Descriptor;
25: import javax.management.DynamicMBean;
26: import javax.management.MBeanException;
27: import javax.management.MBeanInfo;
28: import javax.management.MBeanRegistration;
29: import javax.management.NotificationEmitter;
30: import javax.management.ObjectName;
31:
32: /**
33: * This interface represents an invoker for an MBean. An invoker is registered
34: * to the MBean server to represent an user MBean. The invoker itself implements
35: * a <tt>DynamicMBean</tt> interface and therefore receives all attribute
36: * accessor and operation invocations targeted at the user MBean. <p>
37: *
38: * Invoker implementations may handle the incoming invocations in different
39: * ways. The default implementation in <tt>AbstractMBeanInvoker</tt> constructs
40: * an <tt>Invocation</tt> object for each invocation and dispatches it through
41: * a set of <tt>Interceptor</tt> instances before the invocation is dispatched
42: * on the user MBean. <p>
43: *
44: * @author <a href="mailto:juha@jboss.org">Juha Lindfors</a>.
45: * @author <a href="mailto:dimitris@jboss.org">Dimitris Andreadis</a>.
46: * @version $Revision: 57200 $
47: */
48: public interface MBeanInvoker extends DynamicMBean, MBeanRegistration,
49: NotificationEmitter, Suspendable, Interceptable {
50: MBeanInfo getMetaData();
51:
52: Object getResource();
53:
54: void setResource(Object resource);
55:
56: ObjectName getObjectName();
57:
58: void updateAttributeInfo(Descriptor attrDesc) throws MBeanException;
59: }
|