public interface IRecordingComponent
session
, has a
type
and a name
. One can interact with a recording component
by sending messages
to it, and getting
or
setting
a property. The nature of messages and properties that
are supported by the recording component is specific to the recording component type.Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the component name.
|
Object |
getProperty(String name)
Gets a runtime property of the component.
|
IRecordingSession |
getSession()
Returns the recording session that this component belongs to.
|
String |
getType()
Returns the component type (i.e. the client type for a client, or the recorder
type for a recorder).
|
void |
sendMessage(Message message)
Issues a message to the recording component.
|
void |
setProperty(String name,
Object value)
Sets the value of a runtime property of the component.
|
String getType()
String getName()
IRecordingSession getSession()
void sendMessage(Message message)
message
- A message. Destination and filter properties are checked,
and the message will be delivered only if the recording component matches
these attribute values. However the message will not be delivered to
any other component that matches these values. To deliver a message to all
components that match the destination/filter, use
IRecordingSession.sendMessage(Message)
.Object getProperty(String name) throws UnsupportedPropertyException
name
- The property nameUnsupportedPropertyException
- If the component does not support the property
(either because it does not define such a property, or because the property is read
at an inappropriate time).void setProperty(String name, Object value) throws UnsupportedPropertyException
name
- The property nameUnsupportedPropertyException
- If the component does not support the property
(either because it does not define such a property, or because the property is set
at an inappropriate time).© Copyright IBM Corp. 2013. All rights reserved.