create
Creates a new item with the given name, adding it to this container.
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.
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.
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.