Subversion Repositories eFlore/Applications.del

Rev

Rev 9 | Blame | 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 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;
        }

}