org.jomc.spi
Interface Listener

Package class diagram package Listener

@Generated(value="org.jomc.tools.JavaSources",
           comments="See http://jomc.sourceforge.net/jomc/1.0-alpha-11/jomc-tools")
public interface Listener

Object management and configuration listener interface.

This specification declares a multiplicity of Many. An application assembler may provide multiple implementations of this specification (including none). Use of class ObjectManager is supported for getting these implementations or for selecting a single implementation.

 Listener[] objects = (Listener[]) ObjectManagerFactory.getObjectManager( getClassLoader() ).getObject( Listener.class );
 Listener object = ObjectManagerFactory.getObjectManager( getClassLoader() ).getObject( Listener.class, "implementation name" );
 

This specification does not apply to any scope. A new object is returned whenever requested.

Version:
$Id: Listener.java 1102 2009-12-07 03:01:58Z schulte2005 $
Author:
Christian Schulte 1.0

Method Summary
 void onLog(Level level, String message, Throwable throwable)
          Get called on logging.
 

Method Detail

onLog

void onLog(Level level,
           String message,
           Throwable throwable)
           throws NullPointerException
Get called on logging.

Parameters:
level - The level of the event.
message - The message of the event or null.
throwable - The throwable of the event or null.
Throws:
NullPointerException - if level is null.


Copyright © 2005-2009 The JOMC Project. All Rights Reserved.