3 * Copyright (C) 2015 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.cdm
.api
.application
;
17 public class CdmApplicationState
{
19 private static CdmApplicationState cdmApplicationState
;
21 private ICdmApplicationConfiguration appConfig
;
23 public static CdmApplicationState
getInstance() {
24 if(cdmApplicationState
== null) {
25 cdmApplicationState
= new CdmApplicationState();
27 return cdmApplicationState
;
30 public void setAppConfig(ICdmApplicationConfiguration appConfig
) {
31 this.appConfig
= appConfig
;
34 public ICdmApplicationConfiguration
getAppConfig() {
38 public static void setCurrentAppConfig(ICdmApplicationConfiguration appConfig
) {
39 getInstance().setAppConfig(appConfig
);
42 public static ICdmApplicationConfiguration
getCurrentAppConfig() {
43 return getInstance().getAppConfig();