com.ail.core.logging
Class LoggerCommand

java.lang.Object
  extended by com.ail.core.Type
      extended by com.ail.core.command.AbstractCommand
          extended by com.ail.core.command.Command
              extended by com.ail.core.logging.LoggerCommand
All Implemented Interfaces:
CommandArg, LoggerArg, java.io.Serializable, java.lang.Cloneable

public class LoggerCommand
extends Command
implements LoggerArg

Version:
$Revision: 1.3 $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ail.core.Type
jXPathContext, NOT_PERSISTED
 
Constructor Summary
LoggerCommand()
           
LoggerCommand(Accessor accessor, LoggerArgImp args)
           
 
Method Summary
 Accessor getAccessor()
          Get the accessor used by this command.
 CommandArg getArgs()
          Get the argument set associated with this command.
 java.lang.Throwable getCause()
           
 java.util.Date getDate()
           
 java.lang.String getMessage()
           
 Severity getSeverity()
           
 void setAccessor(Accessor accessor)
          Set the accessor property.
 void setArgs(CommandArg arg)
          Update this Command object's arguments with those taken from the command arg passed in.
 void setCause(java.lang.Throwable cause)
           
 void setDate(java.util.Date date)
           
 void setMessage(java.lang.String message)
           
 void setService(Accessor accessor)
          Set the accessor property.
 void setSeverity(Severity severity)
           
 
Methods inherited from class com.ail.core.command.Command
clone, getCallersCore, getConfiguration, getVersion, invoke, setCallersCore, setConfiguration
 
Methods inherited from class com.ail.core.Type
addAttribute, deleteLock, deleteSerialVersion, fetchJXPathContext, getAttribute, getAttribute, getAttributeCount, getForeignSystemId, getLock, getSerialVersion, getSystemId, hasLock, hasSerialVersion, hasSystemId, isPersisted, markAsNotPersisted, mergeWithDataFrom, removeAttribute, removeAttribute, setAttribute, setForeignSystemId, setLock, setSerialVersion, setSystemId, xpathGet, xpathGet, xpathIterate, xpathSet
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ail.core.command.CommandArg
getCallersCore, setCallersCore
 

Constructor Detail

LoggerCommand

public LoggerCommand()

LoggerCommand

public LoggerCommand(Accessor accessor,
                     LoggerArgImp args)
Method Detail

getAccessor

public Accessor getAccessor()
Description copied from class: Command
Get the accessor used by this command. The accessor is the means by which the command communicates with the service.

Overrides:
getAccessor in class Command
Returns:
Accessor

setAccessor

public void setAccessor(Accessor accessor)
Description copied from class: Command
Set the accessor property.

Overrides:
setAccessor in class Command
Parameters:
accessor - The accessor to use.
See Also:
Command.getAccessor()

setService

public void setService(Accessor accessor)
Description copied from class: Command
Set the accessor property. This does exactly the same thing as setAccessor, but exposing it as setService makes the configuration process more intuative.

i.e. rather than:

  <command name="mycommand"...>
    <parameter name="accessor">myService</parameter>
  </command>
you can use:
  <command name="mycommand"...>
    <parameter name="service">myService</parameter>
  </command>

Overrides:
setService in class Command
Parameters:
accessor - The accessor to use.
See Also:
Command.getAccessor()

setArgs

public void setArgs(CommandArg arg)
Description copied from class: AbstractCommand
Update this Command object's arguments with those taken from the command arg passed in. This is in effect a bulk setter. This interface will be implemented by beans that have many more getters/setters to support their properties. The implementations of this method take 'that', and pull all the relevant properties into this.

Specified by:
setArgs in class AbstractCommand
Parameters:
arg - Source for arguments

getArgs

public CommandArg getArgs()
Description copied from class: AbstractCommand
Get the argument set associated with this command.

Specified by:
getArgs in class AbstractCommand
Returns:
This objects arguments.

setMessage

public void setMessage(java.lang.String message)
Specified by:
setMessage in interface LoggerArg

getDate

public java.util.Date getDate()
Specified by:
getDate in interface LoggerArg

setDate

public void setDate(java.util.Date date)
Specified by:
setDate in interface LoggerArg

getSeverity

public Severity getSeverity()
Specified by:
getSeverity in interface LoggerArg

setSeverity

public void setSeverity(Severity severity)
Specified by:
setSeverity in interface LoggerArg

getMessage

public java.lang.String getMessage()
Specified by:
getMessage in interface LoggerArg

getCause

public java.lang.Throwable getCause()
Specified by:
getCause in interface LoggerArg

setCause

public void setCause(java.lang.Throwable cause)
Specified by:
setCause in interface LoggerArg