org.apache.cocoon.components.notification
Class DefaultNotifyingBuilder

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

public class DefaultNotifyingBuilder
extends Object
implements NotifyingBuilder, Component

Generates an Notifying representation of widely used objects.

Version:
CVS $Id: DefaultNotifyingBuilder.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Nicola Ken Barozzi, Marc Liyanage (futureLAB AG)

Field Summary
 
Fields inherited from interface org.apache.cocoon.components.notification.NotifyingBuilder
ROLE
 
Constructor Summary
DefaultNotifyingBuilder()
           
 
Method Summary
 Notifying build(Object sender, Object o)
          Builds a Notifying object (SimpleNotifyingBean in this case) that tries to explain what the Object o can reveal.
 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 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 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 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 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-2010 The Apache Software Foundation. All Rights Reserved.