public LifeCycleManager(
            IMetamodelManager metamodel,
            IPersistAlgorithm persistAlgorithm,
            IOidGenerator oidGenerator,
            IDomainObjectInjector injector,
            IObjectPersistor objectPersistor,
            INakedObjectManager nakedObjectManager
            )
        {
            Assert.AssertNotNull(metamodel);
            Assert.AssertNotNull(persistAlgorithm);
            Assert.AssertNotNull(oidGenerator);
            Assert.AssertNotNull(injector);
            Assert.AssertNotNull(objectPersistor);
            Assert.AssertNotNull(nakedObjectManager);

            this.metamodel          = metamodel;
            this.persistAlgorithm   = persistAlgorithm;
            this.oidGenerator       = oidGenerator;
            this.injector           = injector;
            this.objectPersistor    = objectPersistor;
            this.nakedObjectManager = nakedObjectManager;

            Log.DebugFormat("Creating {0}", this);
        }
        public IdentityMapImpl(IOidGenerator oidGenerator, IIdentityAdapterMap identityAdapterMap, INakedObjectAdapterMap nakedObjectAdapterMap) {
            Assert.AssertNotNull(oidGenerator);
            Assert.AssertNotNull(identityAdapterMap);
            Assert.AssertNotNull(nakedObjectAdapterMap);

            this.oidGenerator = oidGenerator;
            this.identityAdapterMap = identityAdapterMap;
            this.nakedObjectAdapterMap = nakedObjectAdapterMap;
        }
        public IdentityMapImpl(IOidGenerator oidGenerator, IIdentityAdapterMap identityAdapterMap, INakedObjectAdapterMap nakedObjectAdapterMap)
        {
            Assert.AssertNotNull(oidGenerator);
            Assert.AssertNotNull(identityAdapterMap);
            Assert.AssertNotNull(nakedObjectAdapterMap);

            this.oidGenerator          = oidGenerator;
            this.identityAdapterMap    = identityAdapterMap;
            this.nakedObjectAdapterMap = nakedObjectAdapterMap;
        }
 public IdentityMapImpl(IOidGenerator oidGenerator,
                        IIdentityAdapterMap identityAdapterMap,
                        INakedObjectAdapterMap nakedObjectAdapterMap,
                        ILogger <IdentityMapImpl> logger)
 {
     this.oidGenerator          = oidGenerator ?? throw new InitialisationException($"{nameof(oidGenerator)} is null");
     this.identityAdapterMap    = identityAdapterMap ?? throw new InitialisationException($"{nameof(identityAdapterMap)} is null");
     this.nakedObjectAdapterMap = nakedObjectAdapterMap ?? throw new InitialisationException($"{nameof(nakedObjectAdapterMap)} is null");
     this.logger = logger ?? throw new InitialisationException($"{nameof(logger)} is null");
 }
Example #5
0
        public IdentityMapImpl(IOidGenerator oidGenerator, IIdentityAdapterMap identityAdapterMap, IPocoAdapterMap pocoAdapterMap)
        {
            Assert.AssertNotNull(oidGenerator);
            Assert.AssertNotNull(identityAdapterMap);
            Assert.AssertNotNull(pocoAdapterMap);

            this.oidGenerator       = oidGenerator;
            this.identityAdapterMap = identityAdapterMap;
            this.pocoAdapterMap     = pocoAdapterMap;
        }
        public NakedObjectManager(IMetamodelManager metamodel, ISession session, IIdentityMap identityMap, IOidGenerator oidGenerator, NakedObjectFactory nakedObjectFactory) {
            Assert.AssertNotNull(metamodel);
            Assert.AssertNotNull(session);
            Assert.AssertNotNull(identityMap);
            Assert.AssertNotNull(oidGenerator);
            Assert.AssertNotNull(nakedObjectFactory);

            this.metamodel = metamodel;
            this.session = session;
            this.identityMap = identityMap;
            this.oidGenerator = oidGenerator;
            this.nakedObjectFactory = nakedObjectFactory;
        }
Example #7
0
        public NakedObjectManager(IMetamodelManager metamodel, ISession session, IIdentityMap identityMap, IOidGenerator oidGenerator, NakedObjectFactory nakedObjectFactory)
        {
            Assert.AssertNotNull(metamodel);
            Assert.AssertNotNull(session);
            Assert.AssertNotNull(identityMap);
            Assert.AssertNotNull(oidGenerator);
            Assert.AssertNotNull(nakedObjectFactory);

            this.metamodel          = metamodel;
            this.session            = session;
            this.identityMap        = identityMap;
            this.oidGenerator       = oidGenerator;
            this.nakedObjectFactory = nakedObjectFactory;
        }
 public NakedObjectManager(IMetamodelManager metamodel,
                           ISession session,
                           IIdentityMap identityMap,
                           IOidGenerator oidGenerator,
                           NakedObjectFactory nakedObjectFactory,
                           ILoggerFactory loggerFactory,
                           ILogger <NakedObjectManager> logger)
 {
     this.metamodel          = metamodel ?? throw new InitialisationException($"{nameof(metamodel)} is null");
     this.session            = session ?? throw new InitialisationException($"{nameof(session)} is null");
     this.identityMap        = identityMap ?? throw new InitialisationException($"{nameof(identityMap)} is null");
     this.oidGenerator       = oidGenerator ?? throw new InitialisationException($"{nameof(oidGenerator)} is null");
     this.nakedObjectFactory = nakedObjectFactory ?? throw new InitialisationException($"{nameof(nakedObjectFactory)} is null");
     this.loggerFactory      = loggerFactory ?? throw new InitialisationException($"{nameof(loggerFactory)} is null");
     this.logger             = logger ?? throw new InitialisationException($"{nameof(logger)} is null");
 }
        public LifeCycleManager(
            IMetamodelManager metamodel,
            IPersistAlgorithm persistAlgorithm,
            IOidGenerator oidGenerator,
            IDomainObjectInjector injector,
            IObjectPersistor objectPersistor,
            INakedObjectManager nakedObjectManager
            ) {
            Assert.AssertNotNull(metamodel);
            Assert.AssertNotNull(persistAlgorithm);
            Assert.AssertNotNull(oidGenerator);
            Assert.AssertNotNull(injector);
            Assert.AssertNotNull(objectPersistor);
            Assert.AssertNotNull(nakedObjectManager);

            this.metamodel = metamodel;
            this.persistAlgorithm = persistAlgorithm;
            this.oidGenerator = oidGenerator;
            this.injector = injector;
            this.objectPersistor = objectPersistor;
            this.nakedObjectManager = nakedObjectManager;
        }
 public LifeCycleManager(
     IMetamodelManager metamodel,
     IPersistAlgorithm persistAlgorithm,
     IOidGenerator oidGenerator,
     IDomainObjectInjector injector,
     IObjectPersistor objectPersistor,
     INakedObjectManager nakedObjectManager,
     ISession session,
     ILoggerFactory loggerFactory,
     ILogger <LifeCycleManager> logger
     )
 {
     this.metamodel          = metamodel ?? throw new InitialisationException($"{nameof(metamodel)} is null");
     this.persistAlgorithm   = persistAlgorithm ?? throw new InitialisationException($"{nameof(persistAlgorithm)} is null");
     this.oidGenerator       = oidGenerator ?? throw new InitialisationException($"{nameof(oidGenerator)} is null");
     this.injector           = injector ?? throw new InitialisationException($"{nameof(injector)} is null");
     this.objectPersistor    = objectPersistor ?? throw new InitialisationException($"{nameof(objectPersistor)} is null");
     this.nakedObjectManager = nakedObjectManager ?? throw new InitialisationException($"{nameof(nakedObjectManager)} is null");
     this.session            = session;
     this.loggerFactory      = loggerFactory ?? throw new InitialisationException($"{nameof(loggerFactory)} is null");
     this.logger             = logger ?? throw new InitialisationException($"{nameof(logger)} is null");
 }