org.apache.camel.component.jmx
Class NotificationXmlFormatter

java.lang.Object
  extended by org.apache.camel.support.ServiceSupport
      extended by org.apache.camel.component.jmx.NotificationXmlFormatter
All Implemented Interfaces:
org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.StatefulService, org.apache.camel.SuspendableService

public class NotificationXmlFormatter
extends org.apache.camel.support.ServiceSupport

Converts the Notification into an XML stream.


Field Summary
 
Fields inherited from class org.apache.camel.support.ServiceSupport
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
 
Constructor Summary
NotificationXmlFormatter()
           
 
Method Summary
protected  JAXBContext createContext(String contextPath)
          Strategy to create JAXB context
protected  void doStart()
           
protected  void doStop()
           
 String format(Notification aNotification)
           
 
Methods inherited from class org.apache.camel.support.ServiceSupport
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationXmlFormatter

public NotificationXmlFormatter()
Method Detail

format

public String format(Notification aNotification)
              throws NotificationFormatException
Throws:
NotificationFormatException

createContext

protected JAXBContext createContext(String contextPath)
                             throws JAXBException
Strategy to create JAXB context

Throws:
JAXBException

doStart

protected void doStart()
                throws Exception
Specified by:
doStart in class org.apache.camel.support.ServiceSupport
Throws:
Exception

doStop

protected void doStop()
               throws Exception
Specified by:
doStop in class org.apache.camel.support.ServiceSupport
Throws:
Exception


Apache Camel