Interface ResourceRegistry

All Superinterfaces:
AutoCloseable, Disposable, ResourceResolver
All Known Implementing Classes:
NullImplementation.NullResourceRegistry, SimpleResourceRegistry, SimpleResourceResolver

public interface ResourceRegistry extends ResourceResolver, Disposable
A ResourceRegistry is a registry and owner of strongly typed and explicitly named resources.

When a resource is registered with a ResourceRegistry, the ResourceRegistry assumes ownership of the said resource, up until at which point the ResourceRegistry is disposed.

Important: Although a ResourceRegistry manages resources in a thread-safe manner, it is possible for a thread calling ResourceResolver.getResource(Class, String) to receive a null return value while another thread is registering a resource.

Since:
Coherence 12.1.2
Author:
bo 2011.06.05