Ignore:
Timestamp:
09/22/20 08:52:08 (4 years ago)
Author:
bart
Message:

Version 1.5.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/geniusweb/profilesserver/websocket/GetProfileSocket.java

    r13 r16  
    2828import geniusweb.profile.utilityspace.LinearAdditive;
    2929import geniusweb.profilesserver.Jackson;
    30 import geniusweb.profilesserver.ProfilesFactory;
     30import geniusweb.profilesserver.ProfilesRepository;
    3131import geniusweb.profilesserver.events.ChangeEvent;
    3232import tudelft.utilities.immutablelist.FixedList;
     
    3838 * and profiles. Every time something changes, a new list of domains and
    3939 * profiles is sent. For each new websocket the server will create one of this
    40  * but they all share one {@link ProfilesFactory}.
     40 * but they all share one {@link ProfilesRepository}.
    4141 *
    4242 * <p>
     
    8080                };
    8181                sendupdatedProfile();
    82                 Profiles.factory.addListener(changeListener);
     82                Profiles.repository.addListener(changeListener);
    8383        }
    8484
    8585        private void sendupdatedProfile() {
    86                 Profile newprof = Profiles.factory.getProfile(profilename);
     86                Profile newprof = Profiles.repository.getProfile(profilename);
    8787                // notice, may be null if profile does not exist/was removed.
    8888                if (newprof == null ? prof != null : !newprof.equals(prof)) {
     
    164164        @OnClose
    165165        public void end() throws IOException {
    166                 Profiles.factory.removeListener(changeListener);
     166                Profiles.repository.removeListener(changeListener);
    167167        }
    168168
Note: See TracChangeset for help on using the changeset viewer.