org.lustin.trac.xmlprc
Class TrackerDynamicProxy

java.lang.Object
  extended by org.lustin.trac.xmlprc.TrackerDynamicProxy

public class TrackerDynamicProxy
extends java.lang.Object


Constructor Summary
TrackerDynamicProxy(org.apache.xmlrpc.client.XmlRpcClient client)
          Creates a new instance.
TrackerDynamicProxy(org.apache.xmlrpc.client.XmlRpcClient client, org.apache.xmlrpc.common.TypeConverterFactory typeConverterFactory)
          Creates a new instance.
 
Method Summary
 org.apache.xmlrpc.client.XmlRpcClient getClient()
          Returns the factories client.
 boolean isObjectMethodLocal()
          Returns, whether a method declared by the Object class is performed by the local object, rather than by the server.
 java.lang.Object newInstance(java.lang.Class clazz)
          Creates an object, which is implementing the given interface.
 java.lang.Object newInstance(java.lang.ClassLoader classLoader, java.lang.Class clazz)
          Creates an object, which is implementing the given interface.
 void setObjectMethodLocal(boolean objectMethodLocal)
          Sets, whether a method declared by the Object class is performed by the local object, rather than by the server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrackerDynamicProxy

public TrackerDynamicProxy(org.apache.xmlrpc.client.XmlRpcClient client,
                           org.apache.xmlrpc.common.TypeConverterFactory typeConverterFactory)
Creates a new instance.

Parameters:
client - A fully configured XML-RPC client, which is used internally to perform XML-RPC calls.
typeConverterFactory - Creates instances of TypeConverterFactory, which are used to transform the result object in its target representation.

TrackerDynamicProxy

public TrackerDynamicProxy(org.apache.xmlrpc.client.XmlRpcClient client)
Creates a new instance. Shortcut for
 new ClientFactory( pClient, new TypeConverterFactoryImpl() );
 

Parameters:
client - A fully configured XML-RPC client, which is used internally to perform XML-RPC calls.
See Also:
TypeConverterFactoryImpl
Method Detail

getClient

public org.apache.xmlrpc.client.XmlRpcClient getClient()
Returns the factories client.


isObjectMethodLocal

public boolean isObjectMethodLocal()
Returns, whether a method declared by the Object class is performed by the local object, rather than by the server. Defaults to true.


setObjectMethodLocal

public void setObjectMethodLocal(boolean objectMethodLocal)
Sets, whether a method declared by the Object class is performed by the local object, rather than by the server. Defaults to true.


newInstance

public java.lang.Object newInstance(java.lang.Class clazz)
Creates an object, which is implementing the given interface. The objects methods are internally calling an XML-RPC server by using the factories client.


newInstance

public java.lang.Object newInstance(java.lang.ClassLoader classLoader,
                                    java.lang.Class clazz)
Creates an object, which is implementing the given interface. The objects methods are internally calling an XML-RPC server by using the factories client.