|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.acelogger.location.gatherer.BaseLocationGatherer
public abstract class BaseLocationGatherer
Abstracts common tasks for LocationGatherer.
Constructor Summary | |
---|---|
BaseLocationGatherer(String identifier)
Constructs a BaseLocationGatherer with the supplied identifier and a UserCodeFrameResolver as it's resolver. |
|
BaseLocationGatherer(String identifier,
CodeFrameResolver codeFrameResolver)
Constructs a BaseLocationGatherer with the supplied identifier and resolver. |
Method Summary | |
---|---|
LogEventLocation |
getCallLocation()
Obtains the log call location, such as the package, class and method names. |
CodeFrameResolver |
getCodeFrameResolver()
Returns the CodeFrameResolver used by this gatherer. |
String |
getIdentifier()
Gets a String that identifies this object. |
protected StackTraceElement |
getUserCodeFrame(Thread currentThread)
A short-hand to get the caller location. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sourceforge.acelogger.location.gatherer.LocationGatherer |
---|
getCallLocation |
Constructor Detail |
---|
public BaseLocationGatherer(String identifier)
identifier
- A string that identifies this gatherer.public BaseLocationGatherer(String identifier, CodeFrameResolver codeFrameResolver)
identifier
- A string that identifies this gatherer.codeFrameResolver
- The resolver that should be used to generate caller information.Method Detail |
---|
public final String getIdentifier()
getIdentifier
in interface Identifiable
public final CodeFrameResolver getCodeFrameResolver()
public LogEventLocation getCallLocation()
getCallLocation
in interface LocationGatherer
protected StackTraceElement getUserCodeFrame(Thread currentThread)
currentThread
- The thread that originated the call.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |