Class SingletonContainer
Singleton container.
It creates objects from ObjectFactory implementations and sets them as long as it lives in application.
Constructors
Name | Description |
---|---|
this | Default constructor for SingletonContainer |
Methods
Name | Description |
---|---|
get | Get object created by a factory identified by key |
getFactories | Get all factories available in container. |
getFactory | Get factory for constructed data identified by identity. |
has | Check if an object factory for it exists in container. |
instantiate | Sets up the internal state of container. |
link | Alias a key to an alias_. |
remove | Remove an object factory from container. |
resolve | Resolve an alias to original identity, if possible. |
set | Set object factory |
unlink | Removes alias. |
get | Get a Type that is associated with key. |
getFactories | Get all factories available in container. |
getFactory | Get factory for constructed data identified by identity. |
has | Check if an element is present in Locator by key id. |
instantiate | Sets up the internal state of container. |
link | Alias a key to an alias_. |
remove | Remove an element from Storage with identity. |
resolve | Resolve an alias to original identity, if possible. |
set | Save an element in Storage by key identity. |
unlink | Removes alias. |