org.apache.commons.proxy.provider.remoting
Class RmiProvider
java.lang.Object
org.apache.commons.proxy.provider.remoting.RmiProvider
- All Implemented Interfaces:
- ObjectProvider
public class RmiProvider
- extends Object
- implements ObjectProvider
Provides an object by looking it up in an RMI registry.
- Since:
- 1.0
- Author:
- James Carman
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RmiProvider
public RmiProvider()
RmiProvider
public RmiProvider(String name)
RmiProvider
public RmiProvider(String host,
String name)
RmiProvider
public RmiProvider(String host,
int port,
String name)
RmiProvider
public RmiProvider(String host,
int port,
RMIClientSocketFactory clientSocketFactory,
String name)
getObject
public Object getObject()
- Description copied from interface:
ObjectProvider
- Returns an object. Implementing classes should throw a
ObjectProviderException
if any problems arise while
constructing/finding the object.
- Specified by:
getObject
in interface ObjectProvider
- Returns:
- the object on which the method should be called
setName
public void setName(String name)
setClientSocketFactory
public void setClientSocketFactory(RMIClientSocketFactory clientSocketFactory)
setHost
public void setHost(String host)
setPort
public void setPort(int port)
Copyright © 2005-2008 The Apache Software Foundation. All Rights Reserved.