JTools

org.jtools.tmpl.compiler
Class SimpleInfoSupport

java.lang.Object
  extended by org.jtools.info.publisher.AbstractPublisher
      extended by org.jtools.info.publisher.DelegatedPublisher
          extended by org.jtools.tmpl.compiler.SimpleInfoSupport
All Implemented Interfaces:
org.jpattern.logging.Logger, org.jpattern.logging.Logger.Support, InfoPublisher, InfoSupport

public class SimpleInfoSupport
extends DelegatedPublisher
implements InfoSupport

template compiler support.

Author:
rainer noack

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jpattern.logging.Logger
org.jpattern.logging.Logger.Support
 
Nested classes/interfaces inherited from interface org.jtools.info.InfoPublisher
InfoPublisher.Support
 
Field Summary
 
Fields inherited from class org.jtools.info.publisher.DelegatedPublisher
delegator
 
Constructor Summary
SimpleInfoSupport(org.jpattern.logging.Logger logger, InfoPublisher publisher)
           
 
Method Summary
 CompilerException createException(String message)
           
 void forceLog(org.jpattern.logging.Loggable logRecord)
           
 org.jpattern.logging.LogFactory getFactory()
           
 org.jpattern.logging.Logger getLogger()
           
 org.jpattern.condition.Condition<org.jpattern.logging.Loggable> getTraceFilter()
           
 boolean isLoggable(org.jpattern.logging.Level level)
           
 boolean isLoggable(org.jpattern.logging.Loggable logRecord)
           
 void log(org.jpattern.logging.Level level, Throwable cause, Object msg, Object... params)
           
 void log(org.jpattern.logging.Loggable logRecord)
           
 void logp(org.jpattern.logging.Level level, Class sourceClass, String sourceMethodName, Throwable cause, Object msg, Object... params)
           
 void logrb(org.jpattern.logging.Level level, Class sourceClass, String sourceMethodName, String resourceBundleName, Throwable cause, Object msg, Object... params)
           
protected  Object modifiedMessage(Object msg)
           
 org.jpattern.logging.Loggable newLogRecord(org.jpattern.logging.Level level, String sourceClassName, String sourceMethodName, ResourceBundle resourceBundle, String resourceBundleName, long millis, int threadID, Throwable cause, Object msg, Object... params)
           
 void setTraceFilter(org.jpattern.condition.Condition<org.jpattern.logging.Loggable> filter)
           
 
Methods inherited from class org.jtools.info.publisher.DelegatedPublisher
addConsumer, addConsumer, getConsumers, getManager, publish, removeConsumer, removeConsumer
 
Methods inherited from class org.jtools.info.publisher.AbstractPublisher
publish, publish, publish
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jtools.info.InfoPublisher
addConsumer, addConsumer, getConsumers, getManager, publish, publish, removeConsumer, removeConsumer
 

Constructor Detail

SimpleInfoSupport

public SimpleInfoSupport(org.jpattern.logging.Logger logger,
                         InfoPublisher publisher)
Method Detail

createException

public CompilerException createException(String message)
Specified by:
createException in interface InfoSupport

modifiedMessage

protected Object modifiedMessage(Object msg)

getLogger

public org.jpattern.logging.Logger getLogger()
Specified by:
getLogger in interface org.jpattern.logging.Logger.Support

forceLog

public void forceLog(org.jpattern.logging.Loggable logRecord)
Specified by:
forceLog in interface org.jpattern.logging.Logger

getTraceFilter

public org.jpattern.condition.Condition<org.jpattern.logging.Loggable> getTraceFilter()
Specified by:
getTraceFilter in interface org.jpattern.logging.Logger

isLoggable

public boolean isLoggable(org.jpattern.logging.Level level)
Specified by:
isLoggable in interface org.jpattern.logging.Logger

isLoggable

public boolean isLoggable(org.jpattern.logging.Loggable logRecord)
Specified by:
isLoggable in interface org.jpattern.logging.Logger

log

public void log(org.jpattern.logging.Level level,
                Throwable cause,
                Object msg,
                Object... params)
Specified by:
log in interface org.jpattern.logging.Logger

log

public void log(org.jpattern.logging.Loggable logRecord)
Specified by:
log in interface org.jpattern.logging.Logger

logp

public void logp(org.jpattern.logging.Level level,
                 Class sourceClass,
                 String sourceMethodName,
                 Throwable cause,
                 Object msg,
                 Object... params)
Specified by:
logp in interface org.jpattern.logging.Logger

logrb

public void logrb(org.jpattern.logging.Level level,
                  Class sourceClass,
                  String sourceMethodName,
                  String resourceBundleName,
                  Throwable cause,
                  Object msg,
                  Object... params)
Specified by:
logrb in interface org.jpattern.logging.Logger

newLogRecord

public org.jpattern.logging.Loggable newLogRecord(org.jpattern.logging.Level level,
                                                  String sourceClassName,
                                                  String sourceMethodName,
                                                  ResourceBundle resourceBundle,
                                                  String resourceBundleName,
                                                  long millis,
                                                  int threadID,
                                                  Throwable cause,
                                                  Object msg,
                                                  Object... params)
Specified by:
newLogRecord in interface org.jpattern.logging.Logger

setTraceFilter

public void setTraceFilter(org.jpattern.condition.Condition<org.jpattern.logging.Loggable> filter)
Specified by:
setTraceFilter in interface org.jpattern.logging.Logger

getFactory

public org.jpattern.logging.LogFactory getFactory()
Specified by:
getFactory in interface org.jpattern.logging.Logger

JTools

© 2000-2006, JTools.org.