/** * Shares the specified object with the server and associates it with the * specified type. Objects shared in this way are available in the connection-specific * RMI registry on the server and are not available to other connections. */ public <T> void share( T object, Class<? super T> type ) { share(defaultChannel, object, type); }
/** * Shares the specified object with the server and associates it with the * specified name. Objects shared in this way are available in the connection-specific * RMI registry on the server and are not available to other connections. */ public <T> void share( String name, T object, Class<? super T> type ) { share(defaultChannel, name, object, type); }
/** * Shares the specified object with the server and associates it with the * specified type. Objects shared in this way are available in the connection-specific * RMI registry on the server and are not available to other connections. * All object related communication will be done over the specified connection * channel. */ public <T> void share( byte channel, T object, Class<? super T> type ) { share(channel, type.getName(), object, type); }
/** * Shares the specified object with the server and associates it with the * specified name. Objects shared in this way are available in the connection-specific * RMI registry on the server and are not available to other connections. */ public <T> void share( String name, T object, Class<? super T> type ) { share(defaultChannel, name, object, type); }
/** * Shares the specified object with the server and associates it with the * specified type. Objects shared in this way are available in the connection-specific * RMI registry on the server and are not available to other connections. */ public <T> void share( T object, Class<? super T> type ) { share(defaultChannel, object, type); }
/** * Shares the specified object with the server and associates it with the * specified type. Objects shared in this way are available in the connection-specific * RMI registry on the server and are not available to other connections. * All object related communication will be done over the specified connection * channel. */ public <T> void share( byte channel, T object, Class<? super T> type ) { share(channel, type.getName(), object, type); }
@Override protected void onInitialize(ClientServiceManager s) { logger.log(Level.FINER, "onInitialize({0})", s); this.rmiService = getService(RmiClientService.class); if (rmiService == null) { throw new RuntimeException("AccountClientService requires RMI service"); } logger.finer("Sharing session callback."); rmiService.share(NetworkConstants.LOBBY_CHANNEL, sessionCallback, AccountSessionListener.class); }
@Override protected void onInitialize(ClientServiceManager s) { logger.log(Level.FINER, "onInitialize({0})", s); this.rmiService = getService(RmiClientService.class); if (rmiService == null) { throw new RuntimeException("ChatClientService requires RMI service"); } logger.finer("Sharing session callback."); rmiService.share(NetworkConstants.CHAT_CHANNEL, sessionCallback, ChatSessionListener.class); }
@Override protected void onInitialize(ClientServiceManager s) { logger.log(Level.FINER, "onInitialize({0})", s); this.rmiService = getService(RmiClientService.class); if (rmiService == null) { throw new RuntimeException("LobbyClientService requires RMI service"); } logger.finer("Sharing session callback."); rmiService.share(NetworkConstants.LOBBY_CHANNEL, sessionCallback, LobbySessionListener.class); }