Class SingletonContainer

Singleton container.

class SingletonContainer
  : ConfigurableContainer ;

It creates objects from ObjectFactory implementations and sets them as long as it lives in application.

Constructors

NameDescription
this Default constructor for SingletonContainer

Methods

NameDescription
get Get object created by a factory identified by key
getFactories Get all factories available in container.
getFactory Get factory for constructed component 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
terminate Destruct all managed components.
unlink Removes alias.
get Get a Type that is associated with key.
getFactories Get all factories available in container.
getFactory Get factory for constructed component 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.