create
Creates a new item with the given name, adding it to this container.
This operation is eager, the element is realized before being returned.
Return
The created object. Never null.
Parameters
The name to assign to the created object
Throws
if an object with the given name already exists in this container.
Creates a new item with the given name, adding it to this container, then configuring it with the given closure.
This operation is eager, the element is realized before being returned.
Return
The created object. Never null.
Parameters
The name to assign to the created object
The closure to configure the created object with
Throws
if an object with the given name already exists in this container.
Creates a new item with the given name, adding it to this container, then configuring it with the given action.
This operation is eager, the element is realized before being returned.
Return
The created object. Never null.
Parameters
The name to assign to the created object
The action to configure the created object with
Throws
if an object with the given name already exists in this container.