source: profileconnection/src/main/java/geniusweb/profileconnection/ProfileInterface.java@ 52

Last change on this file since 52 was 52, checked in by ruud, 14 months ago

Fixed small issues in domaineditor.

File size: 924 bytes
Line 
1package geniusweb.profileconnection;
2
3import java.io.IOException;
4
5import geniusweb.profile.Profile;
6import tudelft.utilities.listener.Listenable;
7
8/**
9 * A container holding a modifyable profile. This interface allows testing.
10 */
11public interface ProfileInterface extends Listenable<Profile> {
12
13 /**
14 * @return the latest version of the profile. May change at any time, after
15 * someone updates the version on the server. Call to this may block
16 * for limited time if the profile is not yet available.
17 * @throws IOException if profile can not be fetched
18 */
19 public Profile getProfile() throws IOException;
20
21 /**
22 * This must be called when the user is finished using the interface. The
23 * interface can not be used after calling this. This function allows
24 * implementors to release the streams and listeners. Not calling this after
25 * use may cause resource leaks.
26 */
27 public void close();
28}
Note: See TracBrowser for help on using the repository browser.