net.sourceforge.acelogger.location.gatherer
Class EmptyLocationGatherer

java.lang.Object
  extended by net.sourceforge.acelogger.location.gatherer.EmptyLocationGatherer
All Implemented Interfaces:
Identifiable, LocationGatherer

public class EmptyLocationGatherer
extends Object
implements LocationGatherer

A implementation of LocationGatherer that do nothing.

Since:
1.0.0
Version:
1.0.0
Author:
Zardi (https://sourceforge.net/users/daniel_zardi)

Constructor Summary
EmptyLocationGatherer(String identifier)
          Constructs a EmptyLocationGatherer using the supplied identifier.
 
Method Summary
 LogEventLocation getCallLocation()
          Obtains the log call location, such as the package, class and method names.
 LogEventLocation getCallLocation(Thread currenThread)
          Obtains the log call location, such as the package, class and method names.
 String getIdentifier()
          Gets a String that identifies this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyLocationGatherer

public EmptyLocationGatherer(String identifier)
Constructs a EmptyLocationGatherer using the supplied identifier.

Parameters:
identifier - The identifier of this location gatherer.
Since:
1.0.0
Method Detail

getIdentifier

public final String getIdentifier()
Gets a String that identifies this object.

Specified by:
getIdentifier in interface Identifiable
Returns:
The identifier of this object.

getCallLocation

public LogEventLocation getCallLocation(Thread currenThread)
Obtains the log call location, such as the package, class and method names.

Specified by:
getCallLocation in interface LocationGatherer
Parameters:
currenThread - The thread that originated the call.
Returns:
A logCallLocation with information of the caller location.

getCallLocation

public LogEventLocation getCallLocation()
Obtains the log call location, such as the package, class and method names.

Specified by:
getCallLocation in interface LocationGatherer
Returns:
A logCallLocation with information of the caller location.


Copyright © 2007-2010 The AceLogger Team. All Rights Reserved.