1 /** 2 Defines interface for objects that are able to instantiate and manage lifetime for 3 instantiated objects. Provides a singleton, and prototype implementation of defined 4 interface. 5 6 The main task of an container container, is to manage the lifetime of 7 objects contained in them. Therefore they can manage when an object registered 8 is created, how much it lives, and when it dies. This package provides containers 9 for managed objects (singleton, and prototype for now). Singleton container 10 instantiates all registered objects at once, and keeps them alive until it itself 11 is destroyed/collected by garbage collector. Prototype on other hand, just creates 12 them and leave management of created objects to the rest of application. 13 14 See: 15 $(UL 16 $(LI container.d -> contains the interfaces for containers. ) 17 ) 18 19 License: 20 Boost Software License - Version 1.0 - August 17th, 2003 21 22 Permission is hereby granted, free of charge, to any person or organization 23 obtaining a copy of the software and accompanying documentation covered by 24 this license (the "Software") to use, reproduce, display, distribute, 25 execute, and transmit the Software, and to prepare derivative works of the 26 Software, and to permit third-parties to whom the Software is furnished to 27 do so, all subject to the following: 28 29 The copyright notices in the Software and this entire statement, including 30 the above license grant, this restriction and the following disclaimer, 31 must be included in all copies of the Software, in whole or in part, and 32 all derivative works of the Software, unless such copies or derivative 33 works are solely in the form of machine-executable object code generated by 34 a source language processor. 35 36 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 37 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 38 FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT 39 SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE 40 FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, 41 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 42 DEALINGS IN THE SOFTWARE. 43 44 Authors: 45 Alexandru Ermicioi 46 **/ 47 module aermicioi.aedi.container; 48 49 public import aermicioi.aedi.container.aggregate_container; 50 public import aermicioi.aedi.container.aliasing_container; 51 public import aermicioi.aedi.container.application_container; 52 public import aermicioi.aedi.container.describing_container; 53 public import aermicioi.aedi.container.container; 54 public import aermicioi.aedi.container.prototype_container; 55 public import aermicioi.aedi.container.singleton_container; 56 public import aermicioi.aedi.container.subscribable_container; 57 public import aermicioi.aedi.container.switchable_container; 58 public import aermicioi.aedi.container.tuple_container; 59 public import aermicioi.aedi.container.type_based_container; 60 public import aermicioi.aedi.container.value_container; 61 public import aermicioi.aedi.container.deferred_container; 62 public import aermicioi.aedi.container.gc_registering_container;