- Timestamp:
- 09/22/20 08:52:08 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/geniusweb/profilesserver/websocket/GetProfileSocket.java
r13 r16 28 28 import geniusweb.profile.utilityspace.LinearAdditive; 29 29 import geniusweb.profilesserver.Jackson; 30 import geniusweb.profilesserver.Profiles Factory;30 import geniusweb.profilesserver.ProfilesRepository; 31 31 import geniusweb.profilesserver.events.ChangeEvent; 32 32 import tudelft.utilities.immutablelist.FixedList; … … 38 38 * and profiles. Every time something changes, a new list of domains and 39 39 * profiles is sent. For each new websocket the server will create one of this 40 * but they all share one {@link Profiles Factory}.40 * but they all share one {@link ProfilesRepository}. 41 41 * 42 42 * <p> … … 80 80 }; 81 81 sendupdatedProfile(); 82 Profiles. factory.addListener(changeListener);82 Profiles.repository.addListener(changeListener); 83 83 } 84 84 85 85 private void sendupdatedProfile() { 86 Profile newprof = Profiles. factory.getProfile(profilename);86 Profile newprof = Profiles.repository.getProfile(profilename); 87 87 // notice, may be null if profile does not exist/was removed. 88 88 if (newprof == null ? prof != null : !newprof.equals(prof)) { … … 164 164 @OnClose 165 165 public void end() throws IOException { 166 Profiles. factory.removeListener(changeListener);166 Profiles.repository.removeListener(changeListener); 167 167 } 168 168
Note:
See TracChangeset
for help on using the changeset viewer.