Subversion Repositories eFlore/Applications.del

Rev

Rev 9 | Rev 73 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9 Rev 14
1
package org.tela_botanica.del.client.cache;
1
package org.tela_botanica.del.client.cache;
2
 
2
 
3
import org.tela_botanica.del.client.modeles.Observation;
3
import org.tela_botanica.del.client.modeles.Observation;
4
 
4
 
5
public class ClientCache {
5
public class CacheClient {
6
 
6
 
7
	private Observation currentObservation;
7
	private Observation currentObservation;
8
 
8
 
9
	private static ClientCache instance;
9
	private static CacheClient instance;
10
 
10
 
11
	private ClientCache() {
11
	private CacheClient() {
12
		instance = this;
12
		instance = this;
13
	}
13
	}
14
 
14
 
15
	public Observation getCurrentImageCel() {
15
	public Observation getCurrentObservation() {
16
		return currentObservation;
16
		return currentObservation;
17
	}
17
	}
18
 
18
 
19
	public void setCurrentImageCel(Observation currentObservation) {
19
	public void setCurrentObservation(Observation currentObservation) {
20
		this.currentObservation = currentObservation;
20
		this.currentObservation = currentObservation;
21
	}
21
	}
22
 
22
 
23
	public static ClientCache getInstance() {
23
	public static CacheClient getInstance() {
24
		if (instance == null) {
24
		if (instance == null) {
25
			instance = new ClientCache();
25
			instance = new CacheClient();
26
		}
26
		}
27
		return instance;
27
		return instance;
28
	}
28
	}
29
 
29
 
30
}
30
}