Remote functions

Given a prefix of the form REMOTE_<svc> and a local-name. The mapper returns a Function instance corresponding to the operation name on the Flex remoting destination. The required remoting configuration is implemented in the application by supplying a suitable services-config.xml during compilation time. The following is a sample RemoteFunctions implementation:
public interface IRemoteFunctions { 
 
    @ServiceMethod(familyId="Long") 
    long add(long a, long b); 
 
    @ServiceMethod(displayName = "randomInt", familyId="Int", description = "Return a random integer") 
    int random();    
} 
 
 
public class RemoteFunctionsImpl implements IRemoteFunctions { 
 
    public long add(long a, long b) { 
        return a + b; 
    }  
    
    public int random() { 
        return new Random().nextInt(); 
    } 
}

// Ethnio survey code removed