public interface ResourceManager
| Modifier and Type | Method and Description |
|---|---|
ResourceInstanceData |
getRid(Ref ref)
Method used to retrieve the ResourceInstanceData object for a given Ref
|
void |
registerLifecycleListener(ResourceProviderListener l, java.lang.String typeId)
Add a lifecycle listener to the resource identified by typeId
|
void |
registerLoadListener(ResourceProviderLoadListener l, java.lang.String typeId)
Add a load listener to the resource identified by typeId
|
void |
registerProvider(ResourceProvider p)
Registers a new provider with optional lifecycle listener
|
byte[] |
serialize(ResourceInstanceData rid)
To serialize ResourceInstanceData to binary representation.
|
void registerProvider(ResourceProvider p) throws CustomResourceException
p - the ResourceProvider to be registeredCustomResourceException - on errorvoid registerLifecycleListener(ResourceProviderListener l, java.lang.String typeId) throws CustomResourceException
l - the resource lifecycle listener for the given typeIdtypeId - the typeId of the resource to register a listener forCustomResourceException - on errorvoid registerLoadListener(ResourceProviderLoadListener l, java.lang.String typeId) throws CustomResourceException
l - the resource load listener for the given typeIdtypeId - the typeId of the resource to register a listener forCustomResourceException - on errorResourceInstanceData getRid(Ref ref) throws CustomResourceException
ref - the Ref to retrieve the ResourceInstanceDataCustomResourceException - on errorbyte[] serialize(ResourceInstanceData rid) throws CustomResourceException
rid - the ResourceInstanceData objectCustomResourceException - on error