Пример #1
0
        protected override void Assemble(LayeredArchitecture architecture, LayerArchitecture testPerformerLayer, LayeredCompositeAssembler assembler)
        {
            var layer2 = architecture.GetOrCreateLayer(LAYER_2_NAME);

            layer2.GetOrCreateModule(MODULE_2_NAME).CompositeAssembler.NewLayeredPlainComposite().VisibleIn(Visibility.LAYER).OfTypes(typeof(B1Composite)).WithMixins(typeof(BMixin));
            testPerformerLayer.UseLayers(layer2);
        }
Пример #2
0
        protected override LayeredApplicationModel CreateModel(LayeredArchitecture architecture)
        {
            architecture.Use(new ApplicationWideUses());
            LayerArchitecture layer = architecture.GetOrCreateLayer(LAYER_NAME);

            layer.Use(new LayerWideUses());
            ModuleArchitecture module = layer.GetOrCreateModule(MODULE_NAME);

            module.Use(new ModuleWideUses());

            return(base.CreateModel(architecture));
        }
Пример #3
0
        internal LayeredApplicationModelImmutable(
            LayeredArchitecture architecture,
            Type genericCompositePropertyMixin,
            Type genericCompositeEventMixin,
            Type genericFragmentBaseType,
            DictionaryQuery <CompositeModelType, CompositeModelTypeAssemblyScopeSupport> modelTypeAssemblyScopeSupport,
            out DictionaryQuery <CompositeModelType, CompositeModelTypeModelScopeSupport> compositeModelTypeSupport,
            out DictionaryProxy <Int32, CompositeModel> models,
            out ListProxy <LayerModelMutable> topLevelLayers,
            out ListProxy <LayerModelMutable> allLayers
            )
            : base(architecture, genericCompositePropertyMixin, genericCompositeEventMixin, genericFragmentBaseType, modelTypeAssemblyScopeSupport, out compositeModelTypeSupport, out models)
        {
            this._topLevelLayers = this.CollectionsFactory.NewListProxy <LayerModelMutable>();
            this._allLayers      = this.CollectionsFactory.NewListProxy <LayerModelMutable>();

            topLevelLayers = this._topLevelLayers;
            allLayers      = this._allLayers;
        }
Пример #4
0
        internal LayerArchitectureImpl(
            LayeredArchitecture application,
            UsesContainerQuery parentContainer,
            Func <Int32> compositeIDGenerator,
            DictionaryQuery <CompositeModelType, CompositeModelTypeAssemblyScopeSupport> modelTypeSupport,
            String name,
            Action <LayerArchitecture[]> usageAction
            )
        {
            ArgumentValidator.ValidateNotNull("Application", application);
            ArgumentValidator.ValidateNotNull("Model type support", modelTypeSupport);
            ArgumentValidator.ValidateNotNull("Composite ID Generator", compositeIDGenerator);
            ArgumentValidator.ValidateNotNull("Action to tell usage", usageAction);
            ArgumentValidator.ValidateNotNull("Parent meta-info container", parentContainer);

            this._application          = application;
            this._compositeIDGenerator = compositeIDGenerator;
            this._usageAction          = usageAction;
            this._layerName            = name;
            this._modelTypeSupport     = modelTypeSupport;
            this._metaInfo             = UsesContainerMutableImpl.CreateWithParent(parentContainer);
            this._modules = application.CollectionsFactory.NewDictionaryProxy <String, ModuleArchitectureImpl>();
            this._domainSpecificAssemblers = new DomainSpecificAssemblerAggregatorImpl <LayerArchitecture>(application.CollectionsFactory);
        }
Пример #5
0
 protected override void Assemble(LayeredArchitecture architecture, LayerArchitecture testPerformerLayer, LayeredCompositeAssembler assembler)
 {
     assembler.NewPlainComposite().OfTypes(typeof(B1Composite)).WithMixins(typeof(BMixin));
 }
Пример #6
0
 protected abstract void Assemble(LayeredArchitecture architecture, LayerArchitecture testPerformerLayer, LayeredCompositeAssembler assembler);
Пример #7
0
 protected override void Assemble(LayeredArchitecture architecture, LayerArchitecture testPerformerLayer, LayeredCompositeAssembler assembler)
 {
     testPerformerLayer.GetOrCreateModule(MODULE_2_NAME).CompositeAssembler.NewPlainComposite().OfTypes(typeof(B1Composite)).WithMixins(typeof(BMixin));
 }