Releases an object that was allocated using allocateObjectById
or allocateObjectByType
.
- Parameters
-
id | The identity of the object to release. |
- Exceptions
-
ObjectNotRegisteredException | Thrown when an object with the given identity is not registered with the registry. |
AllocationException | Thrown when the object can't be released. This can happen when the object is not allocatable or is not allocated by this session. |