Search in sources :

Example 1 with DuplexUpperCaser

use of examples.mvc.local.duplex.DuplexUpperCaser in project GIPC by pdewan.

the class AnEchoingDuplexRPCServerLauncher method registerRemoteObjects.

protected void registerRemoteObjects() {
    DuplexRPCServerInputPort aDuplexRPCServerInputPort = (DuplexRPCServerInputPort) mainPort;
    DuplexUpperCaser upperCaser = getUpperCaser();
    aDuplexRPCServerInputPort.register(upperCaser);
}
Also used : DuplexUpperCaser(examples.mvc.local.duplex.DuplexUpperCaser) ADuplexUpperCaser(examples.mvc.local.duplex.ADuplexUpperCaser) DuplexRPCServerInputPort(inputport.rpc.duplex.DuplexRPCServerInputPort)

Example 2 with DuplexUpperCaser

use of examples.mvc.local.duplex.DuplexUpperCaser in project GIPC by pdewan.

the class AnMVCServerConnectionListener method initInputPort.

@Override
public void initInputPort(InputPort anInputPort) {
    inputPort = (DuplexRPCClientInputPort) anInputPort;
    // create and set proxies
    DuplexUpperCaser upperCaseProxy = (DuplexUpperCaser) DirectedRPCProxyGenerator.generateRPCProxy((DuplexRPCClientInputPort) inputPort, ADuplexRPCServerMVCLauncher.REGISTERED_DUPLEX_UPPER_CASER_CLASS);
    model.setUpperCaser(upperCaseProxy);
    // register remote object
    ((DuplexRPCClientInputPort) inputPort).register(model.getCounter());
}
Also used : DuplexUpperCaser(examples.mvc.local.duplex.DuplexUpperCaser) DuplexRPCClientInputPort(inputport.rpc.duplex.DuplexRPCClientInputPort)

Example 3 with DuplexUpperCaser

use of examples.mvc.local.duplex.DuplexUpperCaser in project GIPC by pdewan.

the class AnMVCServerSessionConnectionListener method initInputPort.

@Override
public void initInputPort(InputPort anInputPort) {
    inputPort = (DuplexRPCClientInputPort) anInputPort;
    // create and set proxies
    DuplexUpperCaser upperCaseProxy = (DuplexUpperCaser) DirectedRPCProxyGenerator.generateRPCProxy((DuplexRPCClientInputPort) inputPort, ADuplexRPCServerMVCLauncher.REGISTERED_DUPLEX_UPPER_CASER_CLASS);
    model.setUpperCaser(upperCaseProxy);
    // register remote object
    ((DuplexRPCClientInputPort) inputPort).register(model.getCounter());
}
Also used : DuplexUpperCaser(examples.mvc.local.duplex.DuplexUpperCaser) DuplexRPCClientInputPort(inputport.rpc.duplex.DuplexRPCClientInputPort)

Aggregations

DuplexUpperCaser (examples.mvc.local.duplex.DuplexUpperCaser)3 DuplexRPCClientInputPort (inputport.rpc.duplex.DuplexRPCClientInputPort)2 ADuplexUpperCaser (examples.mvc.local.duplex.ADuplexUpperCaser)1 DuplexRPCServerInputPort (inputport.rpc.duplex.DuplexRPCServerInputPort)1