Protected
constructableProtected
factoriesProtected
resolutionStatic
Private
Optional
instanceRegister an onResolve callback to be added to all newly-created containers.
Register a basic instantiable class as a standard Factory with this container.
Register some factory class with the container. Should take no construction params.
Register a basic instantiable class as a standard Factory with this container, identified by a string name rather than static class.
unique name to identify the factory in the container
Register a producer function as a ClosureFactory with this container.
Get an array of factory instances in the blueprint.
Subscribe to new factories being registered.
Used by Container
implementations to listen for factories being registered after the container is realized.
Subscribe to new constructable factories being registered.
Used by Container
implementations to listen for factories registered after the container is realized.
Get an array of DependencyKey-callback pairs to register with new containers.
Subscribe to new resolution callbacks being registered.
Used by Container
implementations to listen for callbacks registered after the container is realized.
Static
get
Blueprint for newly-created containers.
This is used to allow global helpers like
@Singleton()
or@CLIDirective()
while still supporting multiple global Container instances at once.