Deprecated API


Contents
Deprecated Interfaces
de.dfki.util.xmlrpc.conversion.Convertable
          Use Convertible (correct spelling) 
 

Deprecated Annotation Types
de.dfki.util.xmlrpc.annotation.Contains
          Declares content of collections and maps which occur in method parameters and return values. We need this because of Java's type erasure mechanism deletes information on the parameterized generics leaving only e.g., Collection.class or Map.class as parameter types.

Annotate return values:

   @Contains(Parameter.class)
   public Collection<Parameter> myMethod();
 

Annotate parameter types:
    public void myMethod( @Contains(Parameter.class) Collection<Parameter> p );
 

For practical reasons, only one level of content declaration is supported.
 not supported:
   Map<String,Collection<Stmt>> myMethod();
 
If you want to pass, for example a Map of Collections of type Stmt then you have to define a new type ecapsulating Collections of Stmt. Advantage: Design of overly nested generic types is prevented. Conversion operations are tied to a concete type and make conversions more transparent.
 rewrite it to:
   class Statements extends List<Stmt> implements Convertable<Collection<Stmt>>  { ... }
 
   @Contains(Statements.class)
   Map<String,Statements> myMethod();
 
 
 

Deprecated Methods
de.dfki.util.xmlrpc.client.MethodCall.addParameter(boolean)
           
de.dfki.util.xmlrpc.client.MethodCall.addParameter(Boolean)
           
de.dfki.util.xmlrpc.client.MethodCall.addParameter(byte[])
           
de.dfki.util.xmlrpc.client.MethodCall.addParameter(Collection)
           
de.dfki.util.xmlrpc.client.MethodCall.addParameter(Date)
           
de.dfki.util.xmlrpc.client.MethodCall.addParameter(double)
           
de.dfki.util.xmlrpc.client.MethodCall.addParameter(Double)
           
de.dfki.util.xmlrpc.client.MethodCall.addParameter(int)
           
de.dfki.util.xmlrpc.client.MethodCall.addParameter(Integer)
           
de.dfki.util.xmlrpc.client.MethodCall.addParameter(Map)
           
de.dfki.util.xmlrpc.client.MethodCall.addParameter(String)
           
de.dfki.util.xmlrpc.common.XmlRpcConnection.connect(String)
          use XmlRpcConnection.create(String) instead. 
de.dfki.util.xmlrpc.common.XmlRpcConnection.connect(String, int)
          use XmlRpcConnection.create(String, int) instead. 
de.dfki.util.xmlrpc.common.XmlRpcConnection.connect(String, int, String)
          use XmlRpcConnection.create(String, int, String) instead. 
de.dfki.util.xmlrpc.common.XmlRpcConnection.connect(URL)
          use XmlRpcConnection.create(URL) instead. 
de.dfki.util.xmlrpc.common.XmlRpcConnection.connect(XmlRpcConnection.Id)
          use XmlRpcConnection.create(Id) instead. 
de.dfki.util.xmlrpc.common.MethodSignature.getParametersFromXmlRpcTypes(XmlRpc.Type[])
           
 

Deprecated Constructors
de.dfki.util.xmlrpc.common.MethodSignature(String)
           
de.dfki.util.xmlrpc.common.MethodSignature(String, XmlRpc.Type)
           
de.dfki.util.xmlrpc.common.MethodSignature(String, XmlRpc.Type[])
           
de.dfki.util.xmlrpc.common.MethodSignature(String, XmlRpc.Type[], XmlRpc.Type)
           
de.dfki.util.xmlrpc.common.MethodSignature(String, XmlRpc.Type, XmlRpc.Type)
           
 



Copyright © 2012. All Rights Reserved.