org.objectweb.util.monolog.wrapper.javaLog
Class JMXGenericHandler

java.lang.Object
  extended by java.util.logging.Handler
      extended by org.objectweb.util.monolog.wrapper.javaLog.GenericHandler
          extended by org.objectweb.util.monolog.wrapper.javaLog.JMXGenericHandler
All Implemented Interfaces:
javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, Handler

public class JMXGenericHandler
extends GenericHandler
implements javax.management.NotificationEmitter

Is a generic handler implementation used to wrapper java.util.logging.Handler instance.

Author:
S.Chassande-Barrioz

Field Summary
 
Fields inherited from class org.objectweb.util.monolog.wrapper.javaLog.GenericHandler
handler, name, type
 
Fields inherited from interface org.objectweb.util.monolog.api.Handler
APPEND_MODE_ATTRIBUTE, BUFFER_ATTRIBUTE, CONSOLE_HANDLER_TYPE, FILE_HANDLER_TYPE, FILE_NUMBER_ATTRIBUTE, GENERIC_HANDLER_TYPE, JMX_HANDLER_TYPE, LEVEL_ATTRIBUTE, LOGGER_HANDLER_TYPE, MAX_SIZE_ATTRIBUTE, OUTPUT_ATTRIBUTE, PATTERN_ATTRIBUTE, ROLLING_FILE_HANDLER_TYPE
 
Constructor Summary
JMXGenericHandler()
           
 
Method Summary
 void addNotificationListener(javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback)
           
 javax.management.MBeanNotificationInfo[] getNotificationInfo()
           
 void removeNotificationListener(javax.management.NotificationListener listener)
           
 void removeNotificationListener(javax.management.NotificationListener listener, javax.management.NotificationFilter filter, java.lang.Object handback)
           
 
Methods inherited from class org.objectweb.util.monolog.wrapper.javaLog.GenericHandler
close, flush, getAttribute, getAttributeNames, getEncoding, getFilter, getFormatter, getLevel, getName, getType, isLoggable, publish, setAttribute, setEncoding, setException, setFilter, setFormatter, setLevel, setName
 
Methods inherited from class java.util.logging.Handler
getErrorManager, reportError, setErrorManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMXGenericHandler

public JMXGenericHandler()
Method Detail

addNotificationListener

public void addNotificationListener(javax.management.NotificationListener listener,
                                    javax.management.NotificationFilter filter,
                                    java.lang.Object handback)
                             throws java.lang.IllegalArgumentException
Specified by:
addNotificationListener in interface javax.management.NotificationBroadcaster
Throws:
java.lang.IllegalArgumentException

removeNotificationListener

public void removeNotificationListener(javax.management.NotificationListener listener)
                                throws javax.management.ListenerNotFoundException
Specified by:
removeNotificationListener in interface javax.management.NotificationBroadcaster
Throws:
javax.management.ListenerNotFoundException

removeNotificationListener

public void removeNotificationListener(javax.management.NotificationListener listener,
                                       javax.management.NotificationFilter filter,
                                       java.lang.Object handback)
                                throws javax.management.ListenerNotFoundException
Specified by:
removeNotificationListener in interface javax.management.NotificationEmitter
Throws:
javax.management.ListenerNotFoundException

getNotificationInfo

public javax.management.MBeanNotificationInfo[] getNotificationInfo()
Specified by:
getNotificationInfo in interface javax.management.NotificationBroadcaster