org.apache.cocoon.components.notification
Class DefaultNotifyingBuilder
java.lang.Object
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)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultNotifyingBuilder
public DefaultNotifyingBuilder()
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 SimpleNotifyingBeantype
- see the Notifying apidocstitle
- see the Notifying apidocssource
- see the Notifying apidocsmessage
- see the Notifying apidocsdescription
- see the Notifying apidocsextra
- 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.