-
Notifications
You must be signed in to change notification settings - Fork 1
Resource Manager
technik edited this page Oct 28, 2011
·
1 revision
Resource Manager is a template you can instantiate. It’s designed to automatically taking account of references to classes deriving from an instantiation of the resource template.
With a resource Manager you can:
-
Get a resource: If the resource exists, it will give you a reference of it. If it doesn’t exist, the manager will try to load it. Whenever you Get a resource, you gain ownership of it. This means it will never be deleted from the manager before you release it.
-
Register a resource: Allows you to add a manually created resouce to the manager so that it will be automatically managed.
-
Release a resource: This means you give up the ownership of the resource, granting permision to the manager to delete it whenever it may be adequate.