/** * Looks up a remote object on the server by type and returns a local proxy to the * remote object that was shared on the other end of the network connection. */ public <T> T getRemoteObject( Class<T> type ) { return rmi.getRemoteObject(type); }
/** * Looks up a remote object on the server by name and returns a local proxy to the * remote object that was shared on the other end of the network connection. */ public <T> T getRemoteObject( String name, Class<T> type ) { return rmi.getRemoteObject(name, type); }
/** * Looks up a remote object by type and returns a local proxy to the remote object * that was shared on the other end of the network connection. If this is called * from a client then it is accessing a shared object registered on the server. * If this is called from the server then it is accessing a shared object registered * on the client. */ public <T> T getRemoteObject( Class<T> type ) { return getRemoteObject(type.getName(), type); }
/** * Looks up a remote object on the server by name and returns a local proxy to the * remote object that was shared on the other end of the network connection. */ public <T> T getRemoteObject( String name, Class<T> type ) { return rmi.getRemoteObject(name, type); }
/** * Looks up a remote object on the server by type and returns a local proxy to the * remote object that was shared on the other end of the network connection. */ public <T> T getRemoteObject( Class<T> type ) { return rmi.getRemoteObject(type); }
/** * Looks up a remote object by type and returns a local proxy to the remote object * that was shared on the other end of the network connection. If this is called * from a client then it is accessing a shared object registered on the server. * If this is called from the server then it is accessing a shared object registered * on the client. */ public <T> T getRemoteObject( Class<T> type ) { return getRemoteObject(type.getName(), type); }
protected AccountSessionListener getCallback() { if (callback == null) { RmiRegistry rmi = rmiService.getRmiRegistry(conn); callback = rmi.getRemoteObject(AccountSessionListener.class); if (callback == null) { throw new RuntimeException("Unable to locate client callback for AccountSessionListener"); } } return callback; }
protected LobbySessionListener getCallback() { if (callback == null) { RmiRegistry rmi = rmiService.getRmiRegistry(conn); callback = rmi.getRemoteObject(LobbySessionListener.class); if (callback == null) { throw new RuntimeException("Unable to locate client callback for LobbySessionListener"); } } return callback; }
protected ChatSessionListener getCallback() { if (callback == null) { RmiRegistry rmi = rmiService.getRmiRegistry(conn); callback = rmi.getRemoteObject(ChatSessionListener.class); if (callback == null) { throw new RuntimeException("Unable to locate client callback for ChatSessionListener"); } } return callback; }