edu.nyu.cs.pdsg.switchboard.sbrpc
Interface SbLimitedInterfaceImplementer


public interface SbLimitedInterfaceImplementer

An interface that signals to swichboard.sbrpc.ProxyPackage that not all of a class' interfaces should be automatically provided over SwichboardRPC, and that the object itself will provide an array of interfaces for SwitchboardRPC to export.


Method Summary
 java.lang.Class[] getInterfacesForRPC()
          Called by ProxyPackage to obtain the collection of interfaces to be exported over SwitchboardRPC.
 

Method Detail

getInterfacesForRPC

public java.lang.Class[] getInterfacesForRPC()
Called by ProxyPackage to obtain the collection of interfaces to be exported over SwitchboardRPC.

An example implementation is as follows:

 public class Foo implements A, B, C, D, SbLimitedInterfaceImplementer {
 
    ...

    public Class[] getInterfacesForRPC() {
       Class[] interfaces = new Class[2];
       interfaces[0] = B.class;
       interfaces[1] = C.class;
       return interfaces;
    }
 }
 

Returns:
an array of interfaces that should be exported over SwitchboardRPC


Copyright (c) 2002-2003 New York University RLAB