/** * Shares a server-wide object associated with the specified name. All connections * with RMI hosting started will have access to this shared object as soon as they * connect and they will all share the same instance. It is up to the shared object * to handle any multithreading that might be required. */ public <T> void shareGlobal( String name, T object, Class<? super T> type ) { shareGlobal(defaultChannel, name, object, type); }
/** * Shares a server-wide object associated with the specified type. All connections * with RMI hosting started will have access to this shared object as soon as they * connect and they will all share the same instance. It is up to the shared object * to handle any multithreading that might be required. */ public <T> void shareGlobal( T object, Class<? super T> type ) { shareGlobal(defaultChannel, type.getName(), object, type); }
/** * Shares a server-wide object associated with the specified name. All connections * with RMI hosting started will have access to this shared object as soon as they * connect and they will all share the same instance. It is up to the shared object * to handle any multithreading that might be required. */ public <T> void shareGlobal( String name, T object, Class<? super T> type ) { shareGlobal(defaultChannel, name, object, type); }
/** * Shares a server-wide object associated with the specified type. All connections * with RMI hosting started will have access to this shared object as soon as they * connect and they will all share the same instance. It is up to the shared object * to handle any multithreading that might be required. */ public <T> void shareGlobal( T object, Class<? super T> type ) { shareGlobal(defaultChannel, type.getName(), object, type); }