|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.soa.esb.helpers.ConfigTree org.jboss.soa.esb.notification.NotificationList
public class NotificationList
Holds lists of NotificationTarget objects so that the NotificationHandler EJB behaviour can be controlled at runtime by client applications
Description: Objects of this class will hold a list of objects that extend the NotificationTarget base class. It's main purpose is to allow Rosetta users to configure lists of recipients of specific events, and request the NotificationHandler EJB to take care of triggering the events to each object specified as a child "target" element
Author: Heuristica - Buenos Aires - Argentina
Field Summary | |
---|---|
protected static org.apache.log4j.Logger |
_logger
|
static java.lang.String |
CHILD_TGT
|
static java.lang.String |
ELEMENT
Mnemonic name for the XML element name for the serialized form of objects of this class |
static java.lang.String |
TYPE
|
Constructor Summary | |
---|---|
NotificationList(ConfigTree p_oP)
Instantiate an object according to the contents of <arg 1> |
Method Summary | |
---|---|
boolean |
isErr()
Is this an Error (failure) NotificationList ? |
boolean |
isOK()
Is this an OK (success) NotificationList ? |
static void |
notifyAll(ConfigTree[] list,
Message message)
|
void |
sendNotification(Message message)
Invoke the sendNotification() method for all targets in the list. |
Methods inherited from class org.jboss.soa.esb.helpers.ConfigTree |
---|
addTextChild, attributeCount, attributesAsList, childCount, childPropertyList, clone, cloneObj, copyFrom, fromElement, fromInputStream, fromXml, fromXml, getAllChildren, getAttribute, getAttribute, getAttributeNames, getBooleanAttribute, getChildren, getFirstChild, getFirstTextChild, getFloatAttribute, getLongAttribute, getName, getParent, getRequiredAttribute, getTextChildren, getWholeText, isPureText, removeAllChildren, removeChildrenByName, setAttribute, setName, toString, toString, toXml, toXml |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ELEMENT
public static final java.lang.String TYPE
public static final java.lang.String CHILD_TGT
protected static org.apache.log4j.Logger _logger
Constructor Detail |
---|
public NotificationList(ConfigTree p_oP)
p_oP
- ConfigTree - Parameter object containing the information
needed to instantiate this object, including child elements
named "target" that represent each individual
NotificationTarget objectMethod Detail |
---|
public void sendNotification(Message message) throws NotificationException
message
- Object - The event to notify to all targets
NotificationException
- -
use Exception.getMessage() at runtimepublic boolean isOK()
ConfigTree.getAttribute(String)
public boolean isErr()
ConfigTree.getAttribute(String)
public static void notifyAll(ConfigTree[] list, Message message)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |