Subversion Repositories eFlore/Applications.del

Rev

Rev 14 | Go to most recent revision | Details | Last modification | View Log | RSS feed

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