|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A message manager is responsible for the life cycle of messages and chunks.
This Interface is a component interface. Each Dream component has a
MessageManager
client interface (optionally bound).
Field Summary | |
static String |
ITF_NAME
The commonly used name of refer to this interface. |
Method Summary | |
Object |
createChunk(ChunkType type)
Allocates and returns a chunk of the specified type. |
Message |
createMessage(MessageType type)
Allocates and returns a message of the specified type. |
void |
deleteChunk(Object chunk)
Deletes a chunk. |
void |
deleteMessage(Message message)
Deletes a message. |
Object |
duplicateChunk(Object chunk,
boolean clone)
Duplicates a chunk. |
Message |
duplicateMessage(Message message,
boolean clone)
Duplicates a message. |
short |
getMessageManagerId()
Returns the message manager identifier. |
Field Detail |
public static final String ITF_NAME
Method Detail |
public Message createMessage(MessageType type) throws UnknownChunkTypeError
ExtensibleMessage
) or not.
type
- the type of the message to be created.
UnknownChunkTypeError
- if one of the chunk type in the message type
is unknown by the manager (see createChunk(ChunkType)
).public void deleteMessage(Message message)
message
- the message to be deleted.public Message duplicateMessage(Message message, boolean clone)
deleteMessage(Message)
operation only
deletes the message when all the duplicated references have been released
message
- the message to be duplicated.clone
- the duplication mode. false
for reference
duplication, true
for value duplication.
public Object createChunk(ChunkType type) throws UnknownChunkTypeError
ChunkType
, so if the
requesed chunk type is unknown, a UnknownChunkTypeError
is thrown
type
- the type of the chunk to be created.
UnknownChunkTypeError
- if the chunk type can not be resolved by the
manager (cannot find implementation).public void deleteChunk(Object chunk)
chunk
- the chunk to delete.public Object duplicateChunk(Object chunk, boolean clone)
duplicateMessage(Message, boolean)
).
chunk
- the chunk to be duplicated.clone
- the duplication mode.
public short getMessageManagerId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |