org.apache.cocoon.components.notification
Class DefaultNotifyingBuilder

java.lang.Object
  extended byorg.apache.cocoon.components.notification.DefaultNotifyingBuilder
All Implemented Interfaces:
org.apache.cocoon.components.notification.NotifyingBuilder

public class DefaultNotifyingBuilder
extends Object
implements org.apache.cocoon.components.notification.NotifyingBuilder

Generates an Notifying representation of widely used objects.

Version:
$Id: DefaultNotifyingBuilder.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Field Summary
 
Fields inherited from interface org.apache.cocoon.components.notification.NotifyingBuilder
ROLE
 
Constructor Summary
DefaultNotifyingBuilder()
           
 
Method Summary
 org.apache.cocoon.components.notification.Notifying build(Object sender, Object o)
          Builds a Notifying object (SimpleNotifyingBean in this case) that tries to explain what the Object o can reveal.
 org.apache.cocoon.components.notification.Notifying build(Object sender, Object o, String type, String title, String source, String message, String description, Map extra)
          Builds a Notifying object (SimpleNotifyingBean in this case) that explains a notification.
static Throwable getRootCause(Throwable t)
          Get root cause Throwable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultNotifyingBuilder

public DefaultNotifyingBuilder()
Method Detail

build

public org.apache.cocoon.components.notification.Notifying build(Object sender,
                                                                 Object o)
Builds a Notifying object (SimpleNotifyingBean in this case) that tries to explain what the Object o can reveal.

Specified by:
build in interface org.apache.cocoon.components.notification.NotifyingBuilder
Parameters:
sender - who sent this Object.
o - the object to use when building the SimpleNotifyingBean
Returns:
the Notifying Object that was build
See Also:
Notifying

build

public org.apache.cocoon.components.notification.Notifying build(Object sender,
                                                                 Object o,
                                                                 String type,
                                                                 String title,
                                                                 String source,
                                                                 String message,
                                                                 String description,
                                                                 Map extra)
Builds a Notifying object (SimpleNotifyingBean in this case) that explains a notification.

Specified by:
build in interface org.apache.cocoon.components.notification.NotifyingBuilder
Parameters:
sender - who sent this Object.
o - the object to use when building the SimpleNotifyingBean
type - see the Notifying apidocs
title - see the Notifying apidocs
source - see the Notifying apidocs
message - see the Notifying apidocs
description - see the Notifying apidocs
extra - see the Notifying apidocs
Returns:
the Notifying Object that was build
See Also:
Notifying

getRootCause

public static Throwable getRootCause(Throwable t)
Get root cause Throwable.



Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.