Subversion Repositories eFlore/Applications.del

Rev

Rev 14 | Rev 147 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

package org.tela_botanica.del.client.cache;

import org.tela_botanica.del.client.modeles.Observation;

public class CacheClient {

        private Observation currentObservation;
        
        private String taxonPourRechercheEflore;

        private static CacheClient instance;

        private CacheClient() {
                instance = this;
        }

        public Observation getCurrentObservation() {
                return currentObservation;
        }

        public void setCurrentObservation(Observation currentObservation) {
                this.currentObservation = currentObservation;
        }

        public static CacheClient getInstance() {
                if (instance == null) {
                        instance = new CacheClient();
                }
                return instance;
        }

        public String getTaxonPourRechercheEflore() {
                return taxonPourRechercheEflore;
        }

        public void setTaxonPourRechercheEflore(String taxonPourRechercheEflore) {
                this.taxonPourRechercheEflore = taxonPourRechercheEflore;
        }

}