MatrixBerryCore
ConfRepoManagerFactory.m
Go to the documentation of this file.
1 classdef ConfRepoManagerFactory<handle
2  properties
3  classType
4  end
5  methods
6  function obj=getInstance(self,varargin)
7  import mxberry.conf.test.*;
8  switch self.classType
9  case 'plainver'
10  confPatchRepo=mxberry.conf.test.StructChangeTrackerTest();
11  obj=ConfigurationRMTest(varargin{:});
12  obj.setConfPatchRepo(confPatchRepo);
13  case 'adaptivever'
14  confPatchRepo=mxberry.conf.test.StructChangeTrackerTest();
15  obj=AdaptiveConfRepoManagerTest(varargin{:});
16  obj.setConfPatchRepo(confPatchRepo);
17  case 'plain'
18  obj=ConfigurationRMTest(varargin{:});
19  case 'adaptive'
20  obj=AdaptiveConfRepoManagerTest(varargin{:});
21  case 'versioned'
22  obj=VersionedConfRepoManagerTest(varargin{:});
23  case 'inmem'
25  otherwise
26  mxberry.core.throwerror('unknownType',...
27  'unknown class type');
28  end
29  end
30  function self=ConfRepoManagerFactory(classType)
31  self.classType=classType;
32  end
33  end
34 end
function setConfPatchRepo(in self, in confPatchRepo)
SET.
function setConfPatchRepo(in self, in confPatchRepo)
SETCONFPATCHREPO - sets the configuration version tracker.