001: /*
002: * JBoss, Home of Professional Open Source.
003: * Copyright 2006, Red Hat Middleware LLC, and individual contributors
004: * as indicated by the @author tags. See the copyright.txt file in the
005: * distribution for a full listing of individual contributors.
006: *
007: * This is free software; you can redistribute it and/or modify it
008: * under the terms of the GNU Lesser General Public License as
009: * published by the Free Software Foundation; either version 2.1 of
010: * the License, or (at your option) any later version.
011: *
012: * This software is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of
014: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015: * Lesser General Public License for more details.
016: *
017: * You should have received a copy of the GNU Lesser General Public
018: * License along with this software; if not, write to the Free
019: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
020: * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
021: */
022: package org.jboss.invocation.jrmp.server;
023:
024: import javax.management.ObjectName;
025:
026: import org.jboss.system.ServiceMBean;
027: import org.jboss.invocation.Invocation;
028:
029: import org.w3c.dom.Element;
030:
031: /** An mbean interface for a proxy factory that can expose any interface
032: * with RMI compatible semantics for access to remote clients using JRMP
033: * as the transport protocol.
034: *
035: * @author Scott.Stark@jboss.org
036: * @version $Revision: 57209 $
037: */
038: public interface JRMPProxyFactoryMBean extends ServiceMBean {
039: /** Get the server side JRMPInvoker mbean that will be used as the
040: * RMI/JRMP transport handler.
041: */
042: public ObjectName getInvokerName();
043:
044: /** Set the server side JRMPInvoker mbean that will be used as the
045: * RMI/JRMP transport handler.
046: */
047: public void setInvokerName(ObjectName jmxInvokerName);
048:
049: /** Get the server side mbean that exposes the invoke operation for the
050: exported interface */
051: public ObjectName getTargetName();
052:
053: /** Set the server side mbean that exposes the invoke operation for the
054: exported interface */
055: public void setTargetName(ObjectName targetName);
056:
057: /** Get the JNDI name under which the HttpInvokerProxy will be bound */
058: public String getJndiName();
059:
060: /** Set the JNDI name under which the HttpInvokerProxy will be bound */
061: public void setJndiName(String jndiName);
062:
063: /** Get the RMI compatible interface that the JRMPInvokerProxy implements */
064: public Class getExportedInterface();
065:
066: /** Set the RMI compatible interface that the JRMPInvokerProxy implements */
067: public void setExportedInterface(Class exportedInterface);
068:
069: /** Get the RMI compatible interface that the JRMPInvokerProxy implements */
070: public Class[] getExportedInterfaces();
071:
072: /** Set the RMI compatible interface that the JRMPInvokerProxy implements */
073: public void setExportedInterfaces(Class[] exportedInterface);
074:
075: /** Get the proxy client side interceptor configuration
076: *
077: * @return the proxy client side interceptor configuration
078: */
079: public Element getClientInterceptors();
080:
081: /** Set the proxy client side interceptor configuration
082: *
083: * @param config the proxy client side interceptor configuration
084: */
085: public void setClientInterceptors(Element config) throws Exception;
086:
087: /**
088: * @return whether invocations go to the target method instead of invoke(Invocation mi)
089: */
090: public boolean getInvokeTargetMethod();
091:
092: /**
093: * @param invokeTargetMethod whether invocations should go to the target method instead of invoke(Invocation mi)
094: */
095: public void setInvokeTargetMethod(boolean invokeTargetMethod);
096:
097: /** Get the proxy instance created by the factory.
098: */
099: public Object getProxy();
100:
101: public Object invoke(Invocation mi) throws Exception;
102: }
|