|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceManager
Method Summary | |
---|---|
ResourceInstanceData |
getRid(Ref ref)
Method used to retrieve the ResourceInstanceData object for a given Ref |
void |
registerLifecycleListener(ResourceProviderListener l,
String typeId)
Add a lifecycle listener to the resource identified by typeId |
void |
registerLoadListener(ResourceProviderLoadListener l,
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. |
Method Detail |
---|
void registerProvider(ResourceProvider p) throws CustomResourceException
p
- the ResourceProvider to be registered
CustomResourceException
- on errorvoid registerLifecycleListener(ResourceProviderListener l, String typeId) throws CustomResourceException
l
- the resource lifecycle listener for the given typeIdtypeId
- the typeId of the resource to register a listener for
CustomResourceException
- on errorvoid registerLoadListener(ResourceProviderLoadListener l, String typeId) throws CustomResourceException
l
- the resource load listener for the given typeIdtypeId
- the typeId of the resource to register a listener for
CustomResourceException
- on errorResourceInstanceData getRid(Ref ref) throws CustomResourceException
ref
- the Ref to retrieve the ResourceInstanceData
CustomResourceException
- on errorbyte[] serialize(ResourceInstanceData rid) throws CustomResourceException
rid
- the ResourceInstanceData object
CustomResourceException
- on error
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |