Subversion Repositories eFlore/Applications.del

Rev

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
 
14 benjamin 5
public class CacheClient {
9 benjamin 6
 
7
	private Observation currentObservation;
73 benjamin 8
 
9
	private String taxonPourRechercheEflore;
9 benjamin 10
 
14 benjamin 11
	private static CacheClient instance;
9 benjamin 12
 
14 benjamin 13
	private CacheClient() {
9 benjamin 14
		instance = this;
15
	}
16
 
14 benjamin 17
	public Observation getCurrentObservation() {
9 benjamin 18
		return currentObservation;
19
	}
20
 
14 benjamin 21
	public void setCurrentObservation(Observation currentObservation) {
9 benjamin 22
		this.currentObservation = currentObservation;
23
	}
24
 
14 benjamin 25
	public static CacheClient getInstance() {
9 benjamin 26
		if (instance == null) {
14 benjamin 27
			instance = new CacheClient();
9 benjamin 28
		}
29
		return instance;
30
	}
31
 
73 benjamin 32
	public String getTaxonPourRechercheEflore() {
33
		return taxonPourRechercheEflore;
34
	}
35
 
36
	public void setTaxonPourRechercheEflore(String taxonPourRechercheEflore) {
37
		this.taxonPourRechercheEflore = taxonPourRechercheEflore;
38
	}
39
 
9 benjamin 40
}