|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.felix.ipojo.handlers.event.publisher.EventAdminPublisherMetadata
class EventAdminPublisherMetadata
Represent a publisher.
| Field Summary | |
|---|---|
static java.lang.String |
DATA_KEY_ATTRIBUTE
The data key attribute in the component metadata. |
static java.lang.String |
DEFAULT_DATA_KEY_VALUE
The data key attribute's default value. |
static boolean |
DEFAULT_SYNCHRONOUS_VALUE
The synchronous attribute's default value. |
static java.lang.String |
FIELD_ATTRIBUTE
The field attribute in the component metadata. |
private java.lang.String |
m_dataKey
The key where user data are stored in the event dictionary. |
private java.lang.String |
m_field
The name of the field representing the publisher in the component. |
private java.lang.String |
m_name
The name which acts as an identifier. |
private boolean |
m_synchronous
Events sending mode. |
private java.lang.String[] |
m_topics
Topics to which events are sent. |
static java.lang.String |
NAME_ATTRIBUTE
The name attribute in the component metadata. |
static java.lang.String |
SYNCHRONOUS_ATTRIBUTE
The synchronous attribute in the component metadata. |
static java.lang.String |
TOPICS_ATTRIBUTE
The topics attribute in the component metadata. |
| Constructor Summary | |
|---|---|
EventAdminPublisherMetadata(Element publisher)
Constructs a publisher from its metadata description. |
|
| Method Summary | |
|---|---|
void |
check()
Checks that the required instance configurable attributes are all set. |
java.lang.String |
getDataKey()
Gets the dataKey attribute of the publisher. |
java.lang.String |
getField()
Gets the field attribute of the publisher. |
java.lang.String |
getName()
Gets the name attribute of the publisher. |
java.lang.String[] |
getTopics()
Gets the topics attribute of the publisher. |
boolean |
isSynchronous()
Gets the synchronous attribute of the publisher. |
void |
setTopics(java.lang.String topicsString)
Sets the topics attribute of the publisher. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String NAME_ATTRIBUTE
public static final java.lang.String FIELD_ATTRIBUTE
public static final java.lang.String TOPICS_ATTRIBUTE
public static final java.lang.String SYNCHRONOUS_ATTRIBUTE
public static final java.lang.String DATA_KEY_ATTRIBUTE
public static final java.lang.String DEFAULT_DATA_KEY_VALUE
public static final boolean DEFAULT_SYNCHRONOUS_VALUE
private final java.lang.String m_name
private final java.lang.String m_field
private java.lang.String[] m_topics
private final boolean m_synchronous
private final java.lang.String m_dataKey
| Constructor Detail |
|---|
public EventAdminPublisherMetadata(Element publisher)
throws ConfigurationException
publisher - the publisher metadata description.
ConfigurationException - if the configuration of the component or
the instance is invalid.| Method Detail |
|---|
public void setTopics(java.lang.String topicsString)
throws ConfigurationException
topicsString - the comma separated list of the topics on which
events are sent
ConfigurationException - the specified topic string is malformed
public void check()
throws ConfigurationException
ConfigurationException - if a required attribute is missingpublic java.lang.String getName()
public java.lang.String getField()
public java.lang.String[] getTopics()
public boolean isSynchronous()
public java.lang.String getDataKey()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||