loggerBeanのILoggerBean.javaインタフェース
次の例は、loggerBean BeanのILoggerBean.javaインタフェースを示しています。
                  
package oracle.soa.platform.component.spring.beans;
import java.util.logging.Level;
/**
 * Logger bean interface, messages will be logged as
 * [<composite instance id>/<component instance id>] <message>
 * <br/>
 * To use this bean from within your context, declare property
 * with ref="loggerBean". E.g.
 * <property name="logger" ref="<b>loggerBean</b>"/>
 */
public interface ILoggerBean 
{
  /**
   * Log a message, with Level.INFO
   * @param message
   */
  public void log (String message);
  
  /**
   * Log a message with desired level
   * @param pLevel the log level
   * @param message the message to log
   */
  public void log (Level pLevel, String message);
  
  /**
   * Log a throwable with the desired level
   * @param level the level to log with
   * @param message the message
   * @param th the exception (throwable) to log
   */
  public void log (Level level, String message, Throwable th);
    
}